cvs: php4 /main php_variables.c
| From: | Zeev Suraski | Date: | Wed, 31 Jul 2002 16:25:13 +0000 |
| Subject: | cvs: php4 /main php_variables.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-13063@lists.php.net to get a copy of this message | ||
zeev Wed Jul 31 12:25:13 2002 EDT
Modified files:
/php4/main php_variables.c
Log:
Fix for non-mbstring builds. Bad Yasuo! :)
Index: php4/main/php_variables.c
diff -u php4/main/php_variables.c:1.38 php4/main/php_variables.c:1.39
--- php4/main/php_variables.c:1.38 Sun Jul 28 00:18:40 2002
+++ php4/main/php_variables.c Wed Jul 31 12:25:12 2002
@@ -16,7 +16,7 @@
| Zeev Suraski <zeev@zend.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: php_variables.c,v 1.38 2002/07/28 04:18:40 yohgaki Exp $ */
+/* $Id: php_variables.c,v 1.39 2002/07/31 16:25:12 zeev Exp $ */
#include <stdio.h>
#include "php.h"
@@ -300,9 +300,8 @@
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);
}