PHP 4.0 Bug #7633: NULL-bytes cause fundamental problems in string processing

From: Date: Sat, 04 Nov 2000 00:07:54 +0000
Subject: PHP 4.0 Bug #7633: NULL-bytes cause fundamental problems in string processing
Groups: php.dev 
Request: Send a blank email to php-dev+get-37048@lists.php.net to get a copy of this message
From: burwitz@mails-media.de Operating system: GNU/Linux 2.2.13 (SuSE 6.3) PHP version: 4.0.3pl1 PHP Bug Type: *General Issues Bug description: NULL-bytes cause fundamental problems in string processing Thank you for your help on Bug id #7621 but it really doesn't work, here an example. The following Source: <html> <? $a ="abc".chr(0)."def"; $b ="123".chr(0)."456"; $a .=b; echo strlen($a); echo "X".$a."X"; ?> </html> PHP4.0.3pl1 with MySQL and Sablotron under Linux results in: <html> 8Xabc</html> Where the result should look like: <html> 14Xabc0def1230456</html> I hope someone can help. Thanks V. Burwitz -- Edit Bug report at: http://bugs.php.net/?id=7633&edit=1

« previous php.dev (#37048) next »