mirror of
https://github.com/php/php-src.git
synced 2024-12-25 09:49:08 +08:00
fix the fix for #47409
use correct comparison and add missing scope checks to trunk
This commit is contained in:
parent
d55669c6ab
commit
0b8839cd4a
@ -1383,7 +1383,7 @@ PHP_FUNCTION(extract)
|
||||
if (var_exists && var_name_len == sizeof("GLOBALS") && !strcmp(var_name, "GLOBALS")) {
|
||||
break;
|
||||
}
|
||||
if (var_exists && var_name_len == sizeof("this") && !strcmp(var_name, "this") && EG(scope) && "" != EG(scope)->name) {
|
||||
if (var_exists && var_name_len == sizeof("this") && !strcmp(var_name, "this") && EG(scope) && EG(scope)->name_length != 0) {
|
||||
break;
|
||||
}
|
||||
ZVAL_STRINGL(&final_name, var_name, var_name_len, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user