mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fixed some.php?a&b&c does not initilize $_GET['a'], $_GET['b'], $_GET['c']
when mbstr-enc-trans is disabled. # There is a bug in php_mbstr_encoding_handler() alo, I'll fix it later.
This commit is contained in:
parent
aa338d7b21
commit
92e542db27
1 changed files with 3 additions and 0 deletions
|
@ -301,6 +301,9 @@ void php_treat_data(int arg, char *str, zval* destArray TSRMLS_DC)
|
|||
val_len = php_url_decode(val, strlen(val));
|
||||
php_register_variable_safe(var, val, val_len, array_ptr TSRMLS_CC);
|
||||
}
|
||||
else {
|
||||
php_register_variable_safe(var, NULL, 0, array_ptr TSRMLS_CC);
|
||||
}
|
||||
var = php_strtok_r(NULL, separator, &strtok_buf);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue