ID: 50926 User updated by: alehawk at gmail dot com Reported By: alehawk at gmail dot com Status: Bogus Bug Type: *General Issues Operating System: WinXP PHP Version: 5.2.12 New Comment:
that is not an empty variable array([error] =>) is empty null is not empty! Previous Comments: ------------------------------------------------------------------------ [2010-02-03 17:44:31] [email protected] RTFM: http://www.php.net/manual/en/ini.core.php#ini.post-max-size ------------------------------------------------------------------------ [2010-02-03 14:13:42] alehawk at gmail dot com Description: ------------ I found that when I upload a file whose size is > to post_max_size and > to upload_max_filesize then $_FILES[$var] array it fill be null, no fields no nothing. If i set post_max_size > file size then the array will have data, also it will return the correct $_FILES[$var]['error'] value. Reproduce code: --------------- --- <?php print_r($_FILES['archivo']); ?> --- Expected result: ---------------- Array ( [name] => testfile.iso [type] => [tmp_name] => [error] => 1 [size] => 0 ) Actual result: -------------- nothing, null... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50926&edit=1
