From: ass3mbler at gmail dot com Operating system: Linux Gentoo 2.6.x PHP version: 4.4.6 PHP Bug Type: HTTP related Bug description: BUG #38263 (Binary data corrupted on multipart form-data) still exists (4.4.x)
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 bug report at http://bugs.php.net/?id=40938&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40938&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40938&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40938&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40938&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40938&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40938&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40938&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40938&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40938&r=support Expected behavior: http://bugs.php.net/fix.php?id=40938&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40938&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40938&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40938&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40938&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40938&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40938&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40938&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40938&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40938&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40938&r=mysqlcfg