PATH:
home
/
lab2454c
/
sportsnovate.com
/
backups
/
core
/
vendor
/
laminas
/
laminas-diactoros
/
src
/
functions
<?php declare(strict_types=1); namespace Laminas\Diactoros; /** * Create an uploaded file instance from an array of values. * * @param array $spec A single $_FILES entry. * @throws Exception\InvalidArgumentException if one or more of the tmp_name, * size, or error keys are missing from $spec. */ function createUploadedFile(array $spec) : UploadedFile { if (! isset($spec['tmp_name']) || ! isset($spec['size']) || ! isset($spec['error']) ) { throw new Exception\InvalidArgumentException(sprintf( '$spec provided to %s MUST contain each of the keys "tmp_name",' . ' "size", and "error"; one or more were missing', __FUNCTION__ )); } return new UploadedFile( $spec['tmp_name'], (int) $spec['size'], $spec['error'], $spec['name'] ?? null, $spec['type'] ?? null ); }
[-] marshal_uri_from_sapi.legacy.php
[edit]
[-] marshal_method_from_sapi.legacy.php
[edit]
[+]
..
[-] create_uploaded_file.php
[edit]
[-] marshal_headers_from_sapi.legacy.php
[edit]
[-] parse_cookie_header.php
[edit]
[-] normalize_server.php
[edit]
[-] parse_cookie_header.legacy.php
[edit]
[-] marshal_method_from_sapi.php
[edit]
[-] marshal_headers_from_sapi.php
[edit]
[-] marshal_protocol_version_from_sapi.php
[edit]
[-] normalize_uploaded_files.legacy.php
[edit]
[-] normalize_server.legacy.php
[edit]
[-] normalize_uploaded_files.php
[edit]
[-] marshal_protocol_version_from_sapi.legacy.php
[edit]
[-] create_uploaded_file.legacy.php
[edit]
[-] marshal_uri_from_sapi.php
[edit]