From: Dmitry Stogov Date: Wed, 17 Jan 2018 23:28:18 +0000 (+0300) Subject: Removed useless SEPARATE_STRING() (zend_string_extend() performs separation anyway) X-Git-Tag: php-7.3.0alpha1~582 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a31f2515075bc7f52955411c89cfefc899fc57af;p=php Removed useless SEPARATE_STRING() (zend_string_extend() performs separation anyway) --- diff --git a/ext/oci8/oci8_statement.c b/ext/oci8/oci8_statement.c index 1a134f99e0..743561428c 100644 --- a/ext/oci8/oci8_statement.c +++ b/ext/oci8/oci8_statement.c @@ -993,8 +993,7 @@ int php_oci_bind_post_exec(zval *data) * binds, php_oci_bind_out_callback() should have allocated a * new string that we can modify here. */ - SEPARATE_STRING(zv); - Z_STR_P(zv) = zend_string_extend(Z_STR_P(zv), Z_STRLEN_P(zv)+1, 0); + ZVAL_NEW_STR(zv, zend_string_extend(Z_STR_P(zv), Z_STRLEN_P(zv)+1, 0)); Z_STRVAL_P(zv)[ Z_STRLEN_P(zv) ] = '\0'; } else if (Z_TYPE_P(zv) == IS_ARRAY) { int i;