mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
GLOBALS protection for extract() function.
This commit is contained in:
parent
94274df4e0
commit
63cd70e920
1 changed files with 4 additions and 0 deletions
|
@ -1459,6 +1459,10 @@ PHP_FUNCTION(extract)
|
|||
/* break omitted intentionally */
|
||||
|
||||
case EXTR_OVERWRITE:
|
||||
if (var_exists && !strcmp(var_name, "GLOBALS")) {
|
||||
break;
|
||||
}
|
||||
|
||||
ZVAL_TEXTL(&final_name, var_name, var_name_len, 1);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue