From: Nikita Popov Date: Fri, 18 Nov 2016 20:41:10 +0000 (+0100) Subject: Fixed bug #73303 X-Git-Tag: php-7.2.0alpha1~882^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8bb39572704a480c929a9f4d52aa4bfd26fed1b2;p=php Fixed bug #73303 --- diff --git a/NEWS b/NEWS index cc0c4869c1..f677e80f7d 100644 --- a/NEWS +++ b/NEWS @@ -16,9 +16,9 @@ PHP NEWS - Mbstring: . Fixed bug #73532 (Null pointer dereference in mb_eregi). (Laruence) -- Mysqlnd: - . Fixed bug #64526 (Add missing mysqlnd.* parameters to php.ini-*). (cmb) - +- Mysqlnd: + . Fixed bug #64526 (Add missing mysqlnd.* parameters to php.ini-*). (cmb) + - Opcache: . Fixed bug #69090 (check cached files permissions) @@ -27,8 +27,9 @@ PHP NEWS . Fixed bug #73530 (Unsetting result set may reset other result set). (cmb) - Standard: - . Fixed bug #73297 (HTTP stream wrapper should ignore HTTP 100 Continue). - (rowan dot collins at gmail dot com) + . Fixed bug #73297 (HTTP stream wrapper should ignore HTTP 100 Continue). + (rowan dot collins at gmail dot com) + . Fixed bug #73303 (Scope not inherited by eval in assert()). (nikic) - XML: . Fixed bug #72135 (malformed XML causes fault) (edgarsandi) @@ -36,7 +37,7 @@ PHP NEWS 10 Nov 2016, PHP 7.1.0RC6 - Core: - . Fixded bug #72736 (Slow performance when fetching large dataset with mysqli + . Fixed bug #72736 (Slow performance when fetching large dataset with mysqli / PDO). (Dmitry) . Fixed bug #72482 (Ilegal write/read access caused by gdImageAALine overflow). (cmb) diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index fc4a39acb6..cba929a7fd 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -1086,6 +1086,8 @@ ZEND_API int zend_eval_stringl(char *str, size_t str_len, zval *retval_ptr, char EG(no_extensions)=1; + new_op_array->scope = zend_get_executed_scope(); + zend_try { ZVAL_UNDEF(&local_retval); zend_execute(new_op_array, &local_retval); diff --git a/ext/standard/tests/assert/bug73303.phpt b/ext/standard/tests/assert/bug73303.phpt new file mode 100644 index 0000000000..57990aba60 --- /dev/null +++ b/ext/standard/tests/assert/bug73303.phpt @@ -0,0 +1,23 @@ +--TEST-- +Bug #73303: Scope not inherited by eval in assert() +--FILE-- +main(); + +?> +--EXPECT-- +Success