diff options
author | Zeev Suraski <zeev@php.net> | 2002-07-31 16:25:12 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2002-07-31 16:25:12 +0000 |
commit | a842e12ad2299e7915397b3ea5a038ba0cedb663 (patch) | |
tree | 2d93d5868d6a82e55d1c45ab99cb9036953b9d4d /main/php_variables.c | |
parent | bc82be428414de6c79df87434badd6bda0be3858 (diff) | |
download | php-git-a842e12ad2299e7915397b3ea5a038ba0cedb663.tar.gz |
Fix for non-mbstring builds. Bad Yasuo! :)
Diffstat (limited to 'main/php_variables.c')
-rw-r--r-- | main/php_variables.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/main/php_variables.c b/main/php_variables.c index e535e18e31..331597fc85 100644 --- a/main/php_variables.c +++ b/main/php_variables.c @@ -300,9 +300,8 @@ void php_treat_data(int arg, char *str, zval* destArray TSRMLS_DC) php_url_decode(var, strlen(var)); 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); + } else { + php_register_variable_safe(var, "", 0, array_ptr TSRMLS_CC); } var = php_strtok_r(NULL, separator, &strtok_buf); } |