com php-src: Removed useless SEPARATE_STRING() (zend _string_extend() performs separation anyway): ext/oci8/oci8_statement.c
| From: | Dmitry Stogov | Date: | Wed, 17 Jan 2018 23:28:18 +0000 |
| Subject: | com php-src: Removed useless SEPARATE_STRING() (zend _string_extend() performs separation anyway): ext/oci8/oci8_statement.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-100952@lists.php.net to get a copy of this message | ||
Commit: a31f2515075bc7f52955411c89cfefc899fc57af
Author: Dmitry Stogov <dmitry@zend.com> Thu, 18 Jan 2018 02:28:18 +0300
Parents: f8885523bfe2eb9a25a3ee6da6c1cf95da00139f
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a31f2515075bc7f52955411c89cfefc899fc57af
Log:
Removed useless SEPARATE_STRING() (zend_string_extend() performs separation anyway)
Changed paths:
M ext/oci8/oci8_statement.c
Diff:
diff --git a/ext/oci8/oci8_statement..c b/ext/oci8/oci8_statement.c
index 1a134f99..7435614 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;