moriyoshi Wed Dec 4 12:12:21 2002 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/standard array.c
Log:
Forgot to merge this part
Index: php4/ext/standard/array.c
diff -u php4/ext/standard/array.c:1.199.2.6 php4/ext/standard/array.c:1.199.2.7
--- php4/ext/standard/array.c:1.199.2.6 Wed Dec 4 11:44:24 2002
+++ php4/ext/standard/array.c Wed Dec 4 12:12:20 2002
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: array.c,v 1.199.2.6 2002/12/04 16:44:24 moriyoshi Exp $ */
+/* $Id: array.c,v 1.199.2.7 2002/12/04 17:12:20 moriyoshi Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -969,9 +969,7 @@
Z_TYPE_P(key) = IS_LONG;
Z_LVAL_P(key) = num_key;
} else {
- Z_TYPE_P(key) = IS_STRING;
- Z_STRVAL_P(key) = string_key;
- Z_STRLEN_P(key) = string_key_len-1;
+ ZVAL_STRINGL(key, string_key, string_key_len-1, 1);
}
/* Call the userland function */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php