iliaa Mon Oct 3 10:04:43 2005 EDT Modified files: (Branch: PHP_5_0) /php-src/ext/standard array.c Log: MFH: GLOBALS protection for extract() function. http://cvs.php.net/diff.php/php-src/ext/standard/array.c?r1=1.266.2.26&r2=1.266.2.27&ty=u Index: php-src/ext/standard/array.c diff -u php-src/ext/standard/array.c:1.266.2.26 php-src/ext/standard/array.c:1.266.2.27 --- php-src/ext/standard/array.c:1.266.2.26 Mon Sep 12 05:59:12 2005 +++ php-src/ext/standard/array.c Mon Oct 3 10:04:41 2005 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: array.c,v 1.266.2.26 2005/09/12 09:59:12 dmitry Exp $ */ +/* $Id: array.c,v 1.266.2.27 2005/10/03 14:04:41 iliaa Exp $ */ #include "php.h" #include "php_ini.h" @@ -1373,6 +1373,10 @@ /* break omitted intentionally */ case EXTR_OVERWRITE: + /* GLOBALS protection */ + if (var_exists && !strcmp(var_name, "GLOBALS")) { + break; + } smart_str_appendl(&final_name, var_name, var_name_len); break;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php