php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50926 $_FILES[] array null when uploaded file is bigger than limits
Submitted: 2010-02-03 14:13 UTC Modified: 2010-02-03 19:26 UTC
From: alehawk at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2.12 OS: WinXP
Private report: No CVE-ID: None
 [2010-02-03 14:13 UTC] 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...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-02-03 19:26 UTC] alehawk at gmail dot com
that is not an empty variable 

array([error] =>) is empty  null is not empty!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 02:01:31 2024 UTC