Date: 11/27/00
- Next message: waldschrott <email protected>: "[PHP-DEV] PHP 4.0 Bug #7987 Updated: POST/GET: string with NULL values not parsed correctly"
- Previous message: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #6929 Updated: DBA + Sleepycat 3.1 : unsupported btree version"
- Next in thread: waldschrott <email protected>: "[PHP-DEV] PHP 4.0 Bug #7987 Updated: POST/GET: string with NULL values not parsed correctly"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 7987
Updated by: waldschrott
Reported By: andbe611 <email protected>
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 <email protected>
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 <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>
- Next message: waldschrott <email protected>: "[PHP-DEV] PHP 4.0 Bug #7987 Updated: POST/GET: string with NULL values not parsed correctly"
- Previous message: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #6929 Updated: DBA + Sleepycat 3.1 : unsupported btree version"
- Next in thread: waldschrott <email protected>: "[PHP-DEV] PHP 4.0 Bug #7987 Updated: POST/GET: string with NULL values not parsed correctly"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

