mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Stop at the index on an unmatched [
This commit is contained in:
parent
7bfb397338
commit
bb8167cda3
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ PHPAPI void php_register_variable_ex(char *var, zval *val, pval *track_vars_arra
|
|||
if (!ip) {
|
||||
/* PHP variables cannot contain '[' in their names, so we replace the character with a '_' */
|
||||
*(index_s - 1) = '_';
|
||||
index_len = var_len = strlen(var);
|
||||
index_len = var_len = strlen(index);
|
||||
goto plain_var;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue