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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: alehawk at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Mon Oct 14 17:01:28 2024 UTC