com php-src: On PHP-7.1 and above we have to check CALL_INFO instead of symbol_table.: Zend/zend_builtin_ functions.c
| From: | Dmitry Stogov | Date: | Mon, 26 Sep 2016 13:16:07 +0000 |
| Subject: | com php-src: On PHP-7.1 and above we have to check CALL_INFO instead of symbol_table.: Zend/zend_builtin_ functions.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-94706@lists.php.net to get a copy of this message | ||
Commit: 6be2e79c2c869a7bf6031164ff3260d53d801c76
Author: Dmitry Stogov <dmitry@zend.com> Mon, 26 Sep 2016 16:16:07 +0300
Parents: bca7f029335941e8cb79e793a9143c3f546a7a87
Branches: PHP-7.1
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6be2e79c2c869a7bf6031164ff3260d53d801c76
Log:
On PHP-7.1 and above we have to check CALL_INFO instead of symbol_table.
Changed paths:
M Zend/zend_builtin_functions.c
Diff:
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c
index 1c20011..0fb0036 100644
--- a/Zend/zend_builtin_functions.c
+++ b/Zend/zend_builtin_functions.c
@@ -2295,7 +2295,7 @@ static void debug_backtrace_get_args(zend_execute_data *call, zval *arg_array)
/
if (call->func->type == ZEND_USER_FUNCTION) {
uint32_t first_extra_arg = MIN(num_args, call->func->op_array.num_args);
- if (UNEXPECTED(call->symbol_table)) {
+ if (UNEXPECTED(ZEND_CALL_INFO(call) & ZEND_CALL_HAS_SYMBOL_TABLE)) {
/* In case of attached symbol_table, values on stack may be invalid
* and we have to access them through symbol_table
* See: https://bugs.php.net/bug.php?id=73156