diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2002-07-28 04:18:40 +0000 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2002-07-28 04:18:40 +0000 |
commit | 92e542db27b317289ff14324d0df69f81118707e (patch) | |
tree | 205ada638c80972ca6fb176bf2c43b91e0671d62 /main/php_variables.c | |
parent | aa338d7b212aa5c518466b81d41d59a486571c99 (diff) | |
download | php-git-92e542db27b317289ff14324d0df69f81118707e.tar.gz |
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.
Diffstat (limited to 'main/php_variables.c')
-rw-r--r-- | main/php_variables.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/php_variables.c b/main/php_variables.c index 1c7fb9c789..e535e18e31 100644 --- a/main/php_variables.c +++ b/main/php_variables.c @@ -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); } |