com php-src: Fixed reference-counting: Zend/zend_operators. h

From: Date: Wed, 05 Jun 2019 22:40:40 +0000
Subject: com php-src: Fixed reference-counting: Zend/zend_operators. h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106578@lists.php.net to get a copy of this message
Commit: 90a2e4ba668e89e59301abfe71175b0c0d1f9b96 Author: Dmitry Stogov <dmitry@zend.com> Thu, 6 Jun 2019 01:40:40 +0300 Parents: bed8ae1d0f7fbd441d91a0676096957ea1b40722 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=90a2e4ba668e89e59301abfe71175b0c0d1f9b96 Log: Fixed reference-counting Changed paths: M Zend/zend_operators.h Diff: diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h index 458ca66..45c8305 100644 --- a/Zend/zend_operators.h +++ b/Zend/zend_operators.h @@ -287,7 +287,7 @@ static zend_always_inline void zend_tmp_string_release(zend_string *tmp) { /* Like zval_get_string, but returns NULL if the conversion fails with an exception. */ static zend_always_inline zend_string *zval_try_get_string(zval *op) { if (EXPECTED(Z_TYPE_P(op) == IS_STRING)) { - return Z_STR_P(op); + return zend_string_copy(Z_STR_P(op)); } else { return zval_try_get_string_func(op); }

« previous php.cvs (#106578) next »