Re: cvs: php4 /main SAPI.c

From: Date: Mon, 10 Feb 2003 21:48:13 +0000
Subject: Re: cvs: php4 /main SAPI.c
References: 1 2 3 4 5  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-18635@lists.php.net to get a copy of this message
On Mon, 10 Feb 2003, Marcus Börger wrote: > > > Have you looked at smart_strs? That's the way to go, if you > > want to get rid of nasty size calculations/checks and ugly > > memcpy calls. > > Basically spprintf was designed to be an easy replacement for > all the other sprintf derivates. But perhaps i should have used > the smart strings inside it. Maybe we wouldnt have the floating > point problem with more than 512 digits? I don't know (haven't followed the thread -- what kind of fp implementation does have 512 digits?). If you can, please avoid such code as in the posted diff. smart_strs are just so much more convenient. The resulting code is also way more maintainable and less error prone. - Sascha

« previous php.cvs (#18635) next »