]> granicus.if.org Git - php/commitdiff
Removed useless SEPARATE_STRING() (zend_string_extend() performs separation anyway)
authorDmitry Stogov <dmitry@zend.com>
Wed, 17 Jan 2018 23:28:18 +0000 (02:28 +0300)
committerDmitry Stogov <dmitry@zend.com>
Wed, 17 Jan 2018 23:28:18 +0000 (02:28 +0300)
ext/oci8/oci8_statement.c

index 1a134f99e0e8870847245e64e68d971194602a63..743561428c8e21d94ee052e55b7915638b825506 100644 (file)
@@ -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;