PHP 4.0 Bug #7987 Updated: POST/GET: string with NULL values not parsed correctly

From: Date: Mon, 27 Nov 2000 11:28:26 +0000
Subject: PHP 4.0 Bug #7987 Updated: POST/GET: string with NULL values not parsed correctly
Groups: php.dev 
Request: Send a blank email to php-dev+get-39232@lists.php.net to get a copy of this message
ID: 7987 Updated by: waldschrott Reported By: andbe611@student.liu.se Status: Feedback Bug Type: HTTP related Assigned To: Comments: are you sure they get truncated? please echo strlen($HTTP_POST_VARS["var"]) *before* the other output and please don't use NS 4.x it is known to truncate an unknown number of bytes after a \0 string, NS6,IE will work... Previous Comments: --------------------------------------------------------------------------- [2000-11-27 02:44:17] andbe611@student.liu.se Ok, I might have been to brief. I have an application posting the string "var=hello%00world" to a script: <?php print $HTTP_POST_VARS["var"]; ?> And the "var" gets trucated at the NULL character. (I've tried it with and without magic_quotes_gpc) --------------------------------------------------------------------------- [2000-11-27 02:28:35] andbe611@student.liu.se When posting a string like this: var=hello%00world The $HTTP_POST_VARS["var"] only contains "hello". I use php.ini-dist '--with-apxs=/usr/local/apache/bin/apxs' '--with-config-file-path=/usr/local/apache/conf' '--with-mysql' '--enable-track-vars' '--enable-ftp' '--enable-wddx' --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7987

« previous php.dev (#39232) next »