Re: cvs: php4 /ext/bz2 bz2.c

From: Date: Fri, 16 Aug 2002 20:55:05 +0000
Subject: Re: cvs: php4 /ext/bz2 bz2.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-13424@lists.php.net to get a copy of this message
> I think his suggestion for calloc applies to the non-streams code > in the 4.2 branch. Alright, so are you suggesting this be reverted? I admint I'm not that famaliar with the streams implementation. You are correc though, my tests were on the 4.2 system. > > --Wez. > > On 08/16/02, "Dan Kalowsky" <dank@deadmime.org> wrote: > > Fix for bug #18947 submitted by pgr75@hotmail.com > > > - Z_STRVAL_P(return_value) = emalloc(len + 1); > > + Z_STRVAL_P(return_value) = ecalloc(len + 1); > > Z_STRLEN_P(return_value) = php_stream_read(stream, Z_STRVAL_P(return_value), len); > > Z_STRVAL_P(return_value)[Z_STRLEN_P(return_value)] = 0; > > >---------------------------------------------------------------< Dan Kalowsky "A little less conversation, http://www.deadmime.org/~dank a little more action." dank-nom@aps-deadmime.org - "A Little Less Conversation", kalowsky@php.net Elvis Presley

« previous php.cvs (#13424) next »