derick          Fri Oct 25 13:44:52 2002 EDT

  Modified files:              
    /php4/ext/mbstring  mbstring.c 
  Log:
  - Fixed bug #20087 (Assertion failure when the value was empty)
  
  
Index: php4/ext/mbstring/mbstring.c
diff -u php4/ext/mbstring/mbstring.c:1.123 php4/ext/mbstring/mbstring.c:1.124
--- php4/ext/mbstring/mbstring.c:1.123  Fri Oct 25 05:36:36 2002
+++ php4/ext/mbstring/mbstring.c        Fri Oct 25 13:44:52 2002
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: mbstring.c,v 1.123 2002/10/25 09:36:36 moriyoshi Exp $ */
+/* $Id: mbstring.c,v 1.124 2002/10/25 17:44:52 derick Exp $ */
 
 /*
  * PHP4 Multibyte String module "mbstring" (currently only for Japanese)
@@ -1794,7 +1794,7 @@
                }
                n++;
                /* add variable to symbol table */
-               php_register_variable_safe(var, val, val_len, track_vars_array 
TSRMLS_CC);
+               php_register_variable_safe(var, val ? val : "", val_len, 
+track_vars_array TSRMLS_CC);
                mbfl_string_clear(&resvar);
                mbfl_string_clear(&resval);
        }



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to