ID: 40938 Comment by: eugene dot ware at nextharbour dot com Reported By: ass3mbler at gmail dot com Status: Assigned Bug Type: HTTP related Operating System: Linux Gentoo 2.6.x PHP Version: 4.4.6 Assigned To: iliaa New Comment:
This bug seems to be present with PHP 4.4.7 even though it looks like these patches have been applied to it. In particular, posting a multipart form containing a file as one of the parts that has 0 or NULL characters in it stuffs up and the $_FILES array is not populated, and reading from php://input seems to truncate the data (losing a large part of the start of the data). Is this bug still open? Previous Comments: ------------------------------------------------------------------------ [2007-03-28 17:51:35] ass3mbler at gmail dot com Description: ------------ The BUG #38236(http://bugs.php.net/bug.php?id=38236),correctly addressed and fixed in the PHP 5.x codebase, is still present in the PHP 4.4.x codebase. I've tested and reproduced the same problem with many installations ranging from PHP 4.4.0 to PHP 4.4.6 included. I've used the relevant patches from iliaa for the files: /main/php_variables.c (http://cvs.php.net/viewvc.cgi/php-src/main/php_variables.c?r1=1.127&r2=1.128 /main/rfc1867.c (http://cvs.php.net/viewvc.cgi/php-src/main/rfc1867.c?r1=1.186&r2=1.187) adapting them for the 4.4.x codebase, and they seems to work correctly. The patches are available here: patch for php_variables.c => http://www.box.net/shared/akyjqyq55s patch for rfc1867.c => http://www.box.net/shared/2ime21vb4j Reproduce code: --------------- Same as BUG #38236(http://bugs.php.net/bug.php?id=38236) Expected result: ---------------- BUG #38236(http://bugs.php.net/bug.php?id=38236) Actual result: -------------- BUG #38236(http://bugs.php.net/bug.php?id=38236). Seems fixed applying the attached patches ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40938&edit=1