This commit is contained in:
Moriyoshi Koizumi 2003-10-08 01:51:32 +00:00
parent f4595d18af
commit ed40a56c6c

View file

@ -273,7 +273,7 @@ static int php_array_element_export(zval **zv, int num_args, va_list args, zend_
} else { /* string key */
char *key;
int key_len;
key = php_addcslashes(hash_key->arKey, hash_key->nKeyLength, &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);
}