Re: PHP 4.0 Bug #7621 Updated: NULL-bytes cause fundamental problems in string processing

From: Date: Sat, 04 Nov 2000 15:08:50 +0000
Subject: Re: PHP 4.0 Bug #7621 Updated: NULL-bytes cause fundamental problems in string processing
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-37128@lists.php.net to get a copy of this message
On Sat, Nov 04, 2000 at 12:19:55AM -0000, waldschrott@php.net wrote: > ID: 7621 > Updated by: waldschrott > Reported By: vburwitz@mails-media.de > Status: Feedback > Bug Type: Scripting Engine problem > Assigned To: > Comments: > > your example (duped out) with chr(0) again works for me, I > tested now on win32 (4.0.4dev) AND linux(4.0.3dev), both are ok. > perhaps anyone else can try to verify works for me as well - the PHP core has been binary safe for years(ever?). in his 2nd sample he mentioned sablotorn, this might be the cause. vburwitz, can you reproduce your problem _without_ piping the output thru sablotron? tc > > Previous Comments: > --------------------------------------------------------------------------- > > [2000-11-03 13:31:25] waldschrott@php.net > hm, works for me (4.0.4dev win32)... strlen() is ok. output > is ok. > > --------------------------------------------------------------------------- > > [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 > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.dev (#37128) next »