From a31f2515075bc7f52955411c89cfefc899fc57af Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 18 Jan 2018 02:28:18 +0300 Subject: [PATCH] Removed useless SEPARATE_STRING() (zend_string_extend() performs separation anyway) --- ext/oci8/oci8_statement.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.50.1