mirror of
https://github.com/php/php-src.git
synced 2026-03-28 18:22:42 +01:00
fix the fix for #47409
use correct comparison and add missing scope checks to trunk
This commit is contained in:
@@ -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