mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-07 17:27:30 +00:00
fix the fix for #47409
use correct comparison and add missing scope checks to trunk
This commit is contained in:
1 parent
139c26f795
commit
c2fa809deb
1 file changed
+1
-1
@@ -1445,7 +1445,7 @@ PHP_FUNCTION(extract)
|
||||
if (var_exists && var_name_len == sizeof("GLOBALS") && ZEND_U_EQUAL(key_type, var_name, var_name_len - 1, "GLOBALS", sizeof("GLOBALS") - 1)) {
|
||||
break;
|
||||
}
|
||||
if (var_exists && var_name_len == sizeof("this") && ZEND_U_EQUAL(key_type, var_name, var_name_len - 1, "this", sizeof("this") - 1)) {
|
||||
if (var_exists && var_name_len == sizeof("this") && ZEND_U_EQUAL(key_type, var_name, var_name_len - 1, "this", sizeof("this") - 1) && EG(scope) && EG(scope)->name_length != 0) {
|
||||
break;
|
||||
}
|
||||
ZVAL_ZSTRL(&final_name, key_type, var_name, var_name_len, 1);
|
||||
|
||||
Reference in new issue
Block a user