[PHP-DEV] PHP 4.0 Bug #7987 Updated: POST/GET: string with NULL values not parsed correctly From: andbe611 <email protected>
Date: 11/27/00

ID: 7987
User Update by: andbe611 <email protected>
Status: Open
Bug Type: HTTP related
Description: POST/GET: string with NULL values not parsed correctly

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)

Previous Comments:
---------------------------------------------------------------------------

[2000-11-27 02:28:35] andbe611 <email protected>
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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>