moriyoshi               Tue Oct  7 21:49:32 2003 EDT

  Modified files:              
    /php-src/ext/standard       var.c 
  Log:
  Better fix for bug #25758
  
  
Index: php-src/ext/standard/var.c
diff -u php-src/ext/standard/var.c:1.172 php-src/ext/standard/var.c:1.173
--- php-src/ext/standard/var.c:1.172    Tue Oct  7 21:16:44 2003
+++ php-src/ext/standard/var.c  Tue Oct  7 21:49:31 2003
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: var.c,v 1.172 2003/10/08 01:16:44 iliaa Exp $ */
+/* $Id: var.c,v 1.173 2003/10/08 01:49:31 moriyoshi Exp $ */
 
 
 /* {{{ includes 
@@ -273,7 +273,7 @@
        } else { /* string key */
                char *key;
                int key_len;
-               key = php_addcslashes(hash_key->arKey, strlen(hash_key->arKey), 
&key_len, 0, "'\\", 2 TSRMLS_CC);
+               key = php_addcslashes(hash_key->arKey, hash_key->nKeyLength, &key_len, 
0, "'\\", 2 TSRMLS_CC);
                php_printf("%*c'%s' => ", level + 1, ' ', key);
                efree(key);
        }

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

Reply via email to