From: Antony Dovgal Date: Thu, 24 Dec 2009 13:07:33 +0000 (+0000) Subject: fix the fix for #47409 X-Git-Tag: php-5.2.13RC1~77 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7d787bdffb12ac3ec9d8b866f2a7ab35513e396;p=php fix the fix for #47409 use correct comparison and add missing scope checks to trunk --- diff --git a/ext/standard/array.c b/ext/standard/array.c index 0ffc40a2b8..7fdcdfd687 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -1510,7 +1510,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; } smart_str_appendl(&final_name, var_name, var_name_len);