cvs: php4 /main php_variables.c

From: Date: Sun, 28 Jul 2002 04:18:41 +0000
Subject: cvs: php4 /main php_variables.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-13005@lists.php.net to get a copy of this message
yohgaki Sun Jul 28 00:18:41 2002 EDT Modified files: /php4/main php_variables.c Log: 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. Index: php4/main/php_variables.c diff -u php4/main/php_variables.c:1.37 php4/main/php_variables.c:1.38 --- php4/main/php_variables.c:1.37 Wed Jul 24 07:25:36 2002 +++ php4/main/php_variables.c Sun Jul 28 00:18:40 2002 @@ -16,7 +16,7 @@ | Zeev Suraski <zeev@zend.com> | +----------------------------------------------------------------------+ */ -/* $Id: php_variables.c,v 1.37 2002/07/24 11:25:36 sesser Exp $ */ +/* $Id: php_variables.c,v 1.38 2002/07/28 04:18:40 yohgaki Exp $ */ #include <stdio.h> #include "php.h" @@ -300,6 +300,9 @@ 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); } var = php_strtok_r(NULL, separator, &strtok_buf); }

« previous php.cvs (#13005) next »