#50926 [Bgs]: $_FILES[] array null when uploaded file is bigger than limits

From: Date: Wed, 03 Feb 2010 19:26:37 +0000
Subject: #50926 [Bgs]: $_FILES[] array null when uploaded file is bigger than limits
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-147204@lists.php.net to get a copy of this message
 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] jani@php.net

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] =&gt; testfile.iso [type] =&gt; [tmp_name] =&gt; [error]
=&gt; 1 [size] =&gt; 0 ) 

Actual result:
--------------
nothing, null...


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=50926&edit=1



Thread (3 messages)

« previous php.bugs (#147204) next »