PHP 4.0 Bug #7621 Updated: NULL-bytes cause fundamental problems in string processing
| From: | waldschrott@php.net | Date: | Fri, 03 Nov 2000 18:31:25 +0000 |
| Subject: | PHP 4.0 Bug #7621 Updated: NULL-bytes cause fundamental problems in string processing | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-37006@lists.php.net to get a copy of this message | ||
ID: 7621
Updated by: waldschrott
Reported By: vburwitz@mails-media.de
Status: Feedback
Bug Type: Scripting Engine problem
Assigned To:
Comments:
hm, works for me (4.0.4dev win32)... strlen() is ok. output
is ok.
Previous Comments:
---------------------------------------------------------------------------
[2000-11-03 09:28:45] vburwitz@mails-media.de
Fundamental String Append Problem!!!
If NULL-bytes are in a string then appending the string won't work.
e.g. (NULL-byte written as "0" here)
$a ="abc0def";
$b ="1230456";
$a .=$b;
echo $a;
=> "abc"
echo strlen($a);
=> "3"
Well I don't have to mention that the problem is most probably
related to NULL-termination of strings in C/C++.
The above creates a lot of HUGE PROBLEMS and was working
with PHP3, since I am depending on NULL-safe string processing.
Could someone give me a fast reply if something more is known?
Thanks
V. Burwitz
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7621