Re: Access raw buffer (for binary data)

From: Date: Tue, 01 Nov 2005 08:10:26 +0000
Subject: Re: Access raw buffer (for binary data)
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-19874@lists.php.net to get a copy of this message
On Tue, 1 Nov 2005, Marco Bambini wrote: > Thanks a lot Rasmus, I have just (wrongly) assumed that the convert_to_string > function tries to search for the 0 termination character. It doesn't - but, PHP strings always require \0 to be the last character so you always need to allocate one more byte and put the \0 in there - even for binary data. Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

« previous php.internals (#19874) next »