cvs: php4 /ext/standard info.c
| From: | Sascha Schumann | Date: | Sun, 12 May 2002 14:50:54 +0000 |
| Subject: | cvs: php4 /ext/standard info.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-11864@lists.php.net to get a copy of this message | ||
sas Sun May 12 10:50:54 2002 EDT
Modified files:
/php4/ext/standard info.c
Log:
Use string_len information
Index: php4/ext/standard/info.c
diff -u php4/ext/standard/info.c:1.177 php4/ext/standard/info.c:1.178
--- php4/ext/standard/info.c:1.177 Sun May 12 10:48:22 2002
+++ php4/ext/standard/info.c Sun May 12 10:50:54 2002
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: info.c,v 1.177 2002/05/12 14:48:22 sas Exp $ */
+/* $Id: info.c,v 1.178 2002/05/12 14:50:54 sas Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -80,7 +80,7 @@
PUTS("[\"");
switch (zend_hash_get_current_key_ex(Z_ARRVAL_PP(data), &string_key, &string_len,
&num_key, 0, NULL)) {
case HASH_KEY_IS_STRING:
- php_html_puts(string_key, strlen(string_key) TSRMLS_CC);
+ php_html_puts(string_key, string_len TSRMLS_CC);
break;
case HASH_KEY_IS_LONG:
php_printf("%ld", num_key);