Re: com php-src: Use zend_string_safe_alloc: ext/interbase/ibase_blobs.c

From: Date: Fri, 29 Apr 2016 03:14:41 +0000
Subject: Re: com php-src: Use zend_string_safe_alloc: ext/interbase/ibase_blobs.c
References: 1 2  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91936@lists.php.net to get a copy of this message
Hey: On Thu, Apr 28, 2016 at 10:56 PM, Matt Wilmas <php_lists@realplain.com> wrote: > Hi Xinchen, > > ----- Original Message ----- > From: "Xinchen Hui" > Sent: Wednesday, April 27, 2016 > > Commit: a05320c4191fb0c4074f733f9a2c478b66e799ce >> Author: Xinchen Hui <laruence@gmail.com> Wed, 27 Apr 2016 >> 20:29:11 +0800 >> Parents: 25ef19f9273a33ce90f53a19273e586df2af6c11 >> Branches: PHP-7.0 master >> >> Link: >> >> http://git.php.net/?p=php-src.git;a=commitdiff;h=a05320c4191fb0c4074f733f9a2c478b66e799ce >> >> Log: >> Use zend_string_safe_alloc >> >> Changed paths: >> M ext/interbase/ibase_blobs.c >> >> >> Diff: >> diff --git a/ext/interbase/ibase_blobs.c b/ext/interbase/ibase_blobs.c >> index 7064023..209904b 100644 >> --- a/ext/interbase/ibase_blobs.c >> +++ b/ext/interbase/ibase_blobs.c >> @@ -99,7 +99,7 @@ int _php_ibase_blob_get(zval *return_value, ibase_blob >> *ib_blob, zend_ulong max_ >> zend_ulong cur_len; >> unsigned short seg_len; >> >> - bl_data = zend_string_alloc(max_len, 0); >> + bl_data = zend_string_alloc(1, max_len, 0, 0); >> >> for (cur_len = stat = 0; (stat == 0 || stat == isc_segment) && cur_len >> < max_len; cur_len += seg_len) { >> > > I didn't send *another* message yesterday :-), but I guess it'll take > longer to notice this build failure... thanks! you save me agian :) I don't have an interbase, so didn't check the build.. my bad. thanks > > > > - Matt -- Xinchen Hui @Laruence http://www.laruence.com/

« previous php.cvs (#91936) next »