moriyoshi               Tue Oct  7 21:52:07 2003 EDT

  Modified files:              (Branch: PHP_4_3)
    /php-src/ext/standard       var.c 
  Log:
  MFH(r-1.174): Better fix for bug #25758
  
  
Index: php-src/ext/standard/var.c
diff -u php-src/ext/standard/var.c:1.150.2.11 php-src/ext/standard/var.c:1.150.2.12
--- php-src/ext/standard/var.c:1.150.2.11       Tue Oct  7 21:17:11 2003
+++ php-src/ext/standard/var.c  Tue Oct  7 21:52:07 2003
@@ -258,7 +258,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 - 1, 
&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