summaryrefslogtreecommitdiff
path: root/main/php_variables.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/php_variables.c')
-rw-r--r--main/php_variables.c3
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);
}