|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-11-03 09:28 UTC] vburwitz at mails-media dot 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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Jul 08 08:00:01 2026 UTC |
user replied that problem is partly solved, anyway there's one NS4.x issue remaining try this... <?php echo "abc\0XXX"; echo 'XXY'.str_repeat('as',60); ?> NS4.x (mozilla,IE etc. won't) simply does not recognize a bunch of characters, it's apparently a Netscape bug and I'm sure we can't do anything here to improve the situation any ideas anyone?