PHP 4.0 Bug #9147 Updated: bugs in post using multipart/form-data

From: Date: Fri, 16 Feb 2001 00:56:48 +0000
Subject: PHP 4.0 Bug #9147 Updated: bugs in post using multipart/form-data
Groups: php.dev 
Request: Send a blank email to php-dev+get-46713@lists.php.net to get a copy of this message
ID: 9147 Updated by: sniper Reported By: hwlee@phys.chungbuk.ac.kr Old-Status: Open Status: Feedback Bug Type: Unknown/Other Function Assigned To: Comments: Please try the latest CVS snapshot from http://snaps.php.net/ as this works for me just fine. (you have to compile it yourself though) --Jani Previous Comments: --------------------------------------------------------------------------- [2001-02-07 20:47:50] hwlee@phys.chungbuk.ac.kr Hello! I installed "php-4.0.4pl1-3.i386.rpm" which can be obtained from "ftp://updates.redhat.com". When one tries to send variables using multipart form, one always get strings with additional CR LF characters at the front. Below I enclose two short files. Please try them. --- a.html ------ <form method=post enctype="multipart/form-data" action="b.php"> Data:<input name=aa value="00000"> </form> --- b.php ------- <? $aahex = bin2hex($aa) ; echo "$aahex"; ?> ------------------ When I submit the form (a.html) with Data = 00000, I get "0d0a3030303030". Here I can see extra CR LF ("0d0a"). When I used older version ( 4.0.3), I didn't experience such things. Thank you. Haewon Lee Physics Dept. Chunbuk Nat'l Univ., Korea --------------------------------------------------------------------------- [2001-02-07 09:42:08] hwlee@phys.chungbuk.ac.kr Hello! I installed "php-4.0.4pl1-3.i386.rpm" which can be obtained from "ftp://updates.redhat.com". When one try to send variables using multipart form, one always get strings with additional CR LF characters at the front. Below I enclose two short files. Please try them. --- a.html ------ <form method=post enctype="multipart/form-data" action="b.php"> Data:<input name=aa value="00000"> </form> --- b.php ------- <? $aahex = bin2hex($aa) ; echo "$aahex"; ?> ------------------ Where I submit the form (a.html) with Data = 00000, I get "0d0a3030303030". Here I can see extra CR LF ("0d0a"). When I used older version ( 4.0.3), I didn't experience such things. Thank you. Haewon Lee Physics Dept. Chunbuk Nat'l Univ., Korea --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9147&edit=2

« previous php.dev (#46713) next »