com php-src: Use zval_ptr_dtor_nogc() instead of zval_dtor() inplaces where circular-references are not possible: ext/curl/multi.c ext/interbase
/ibase_query.c ext/interbase/php_ibase_udf.c ext/ mysqlnd/mysqlnd_result.c

From: Date: Thu, 05 Jul 2018 12:25:55 +0000
Subject: com php-src: Use zval_ptr_dtor_nogc() instead of zval_dtor() inplaces where circular-references are not possible: ext/curl/multi.c ext/interbase
/ibase_query.c ext/interbase/php_ibase_udf.c ext/ mysqlnd/mysqlnd_result.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-102421@lists.php.net to get a copy of this message
Commit: 5f83904a5d76eb09afb8690509598645b84eb1f6 Author: Dmitry Stogov <dmitry@zend.com> Thu, 5 Jul 2018 15:25:55 +0300 Parents: 918a9f09f8c2bed8c1799c92a9d4cfd88d43488a Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5f83904a5d76eb09afb8690509598645b84eb1f6 Log: Use zval_ptr_dtor_nogc() instead of zval_dtor() inplaces where circular-references are not possible Changed paths: M ext/curl/multi.c M ext/interbase/ibase_query.c M ext/interbase/php_ibase_udf.c M ext/mysqlnd/mysqlnd_result.c Diff: diff --git a/ext/curl/multi.c b/ext/curl/multi.c index 2195674..c49b3c0 100644 --- a/ext/curl/multi.c +++ b/ext/curl/multi.c @@ -510,7 +510,7 @@ static int _php_server_push_callback(CURL *parent_ch, CURL *easy, size_t num_hea error = zend_call_function(&fci, &t->fci_cache); zend_fcall_info_args_clear(&fci, 1); - zval_dtor(&headers); + zval_ptr_dtor_nogc(&headers); if (error == FAILURE) { php_error_docref(NULL, E_WARNING, "Cannot call the CURLMOPT_PUSHFUNCTION"); diff --git a/ext/interbase/ibase_query.c b/ext/interbase/ibase_query.c index 3f1a778..8d23a7d 100644 --- a/ext/interbase/ibase_query.c +++ b/ext/interbase/ibase_query.c @@ -1628,7 +1628,7 @@ static void _php_ibase_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int fetch_type) } break; _php_ibase_fetch_error: - zval_dtor(&result); + zval_ptr_dtor_nogc(&result); RETURN_FALSE; } /* switch */ diff --git a/ext/interbase/php_ibase_udf.c b/ext/interbase/php_ibase_udf.c index e77f3c6..2ba9405 100644 --- a/ext/interbase/php_ibase_udf.c +++ b/ext/interbase/php_ibase_udf.c @@ -298,7 +298,7 @@ static void call_php(char *name, PARAMDSC *r, int argc, PARAMDSC **argv) case dtype_sql_date: case dtype_sql_time: case dtype_timestamp: - zval_dtor(&args[i]); + zval_ptr_dtor_nogc(&args[i]); } } diff --git a/ext/mysqlnd/mysqlnd_result.c b/ext/mysqlnd/mysqlnd_result.c index e3eac9d..d9db4c3 100644 --- a/ext/mysqlnd/mysqlnd_result.c +++ b/ext/mysqlnd/mysqlnd_result..c @@ -1811,7 +1811,7 @@ MYSQLND_METHOD(mysqlnd_res, fetch_field_data)(MYSQLND_RES * result, unsigned int */ mysqlnd_fetch_into(result, MYSQLND_FETCH_NUM, &row, MYSQLND_MYSQL); if (Z_TYPE(row) != IS_ARRAY) { - zval_dtor(&row); + zval_ptr_dtor_nogc(&row); RETVAL_NULL(); DBG_VOID_RETURN; } @@ -1824,7 +1824,7 @@ MYSQLND_METHOD(mysqlnd_res, fetch_field_data)(MYSQLND_RES * result, unsigned int entry = zend_hash_get_current_data(Z_ARRVAL(row)); ZVAL_COPY(return_value, entry); - zval_dtor(&row); + zval_ptr_dtor_nogc(&row); DBG_VOID_RETURN; }

« previous php.cvs (#102421) next »