Bug #52737 [NEW]: Linux 2.6.18
| From: | erik dot persson at techdata dot nu | Date: | Mon, 30 Aug 2010 10:04:22 +0000 |
| Subject: | Bug #52737 [NEW]: Linux 2.6.18 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-153917@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: 5.3.3
Package: HTTP related
Bug Type: Bug
Bug description:Linux 2.6.18
Description:
------------
Hello.
I'm running a setup with PHP 5.3.3 and Apache/2.2.11 (Unix), and since I
updated to the latest version of PHP... it seems that $_FILES only contains
the first 20 files posted
That means that if I choose to submit a file at the 21st file selection, it
will be ignored.
(this works as expected with PHP 5.2.4 and Apache/2.0.59 (Unix))
Test script:
---------------
<?
if (count ($_FILES))
print_r ($_FILES);
?>
<HTML>
<FORM NAME="Upload" METHOD="POST" ENCTYPE="MULTIPART/FORM-DATA">
<? for ($i = 0; $i < 25; $i++) { ?><INPUT TYPE="FILE" NAME="File_<?
echo
$i; ?>"><BR><? } ?>
<INPUT TYPE="SUBMIT">
</FORM>
</HTML>
Expected result:
----------------
Array
(
[File_0] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_1] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_2] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_3] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_4] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_5] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_6] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_7] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_8] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_9] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_10] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_11] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_12] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_13] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_14] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_15] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_16] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_17] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_18] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_19] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_20] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_21] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_22] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_23] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_24] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
)
Actual result:
--------------
Array
(
[File_0] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_1] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_2] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_3] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_4] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_5] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_6] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_7] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_8] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_9] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_10] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_11] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_12] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_13] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_14] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_15] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_16] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_17] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_18] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
[File_19] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
)
--
Edit bug report at http://bugs.php.net/bug.php?id=52737&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52737&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52737&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52737&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=52737&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52737&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=52737&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=52737&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=52737&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=52737&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=52737&r=support
Expected behavior: http://bugs.php.net/fix.php?id=52737&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=52737&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=52737&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=52737&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52737&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52737&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=52737&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=52737&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=52737&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=52737&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=52737&r=mysqlcfg