cvs: php4(PHP_4_0_5) /ext/standard array.c

From: Date: Mon, 02 Apr 2001 16:12:07 +0000
Subject: cvs: php4(PHP_4_0_5) /ext/standard array.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-4947@lists.php.net to get a copy of this message
andrei Mon Apr 2 09:12:07 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/ext/standard array.c Log: MFH Index: php4/ext/standard/array.c diff -u php4/ext/standard/array.c:1.101 php4/ext/standard/array.c:1.101.2.1 --- php4/ext/standard/array.c:1.101 Mon Mar 12 02:14:00 2001 +++ php4/ext/standard/array.c Mon Apr 2 09:12:06 2001 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: array.c,v 1.101 2001/03/12 10:14:00 stas Exp $ */ +/* $Id: array.c,v 1.101.2.1 2001/04/02 16:12:06 andrei Exp $ */ #include "php.h" #include "php_ini.h" @@ -2195,7 +2195,7 @@ switch (zend_hash_get_current_key_ex(target_hash, &string_key, &str_key_len, &num_key, 1, &pos)) { case HASH_KEY_IS_STRING: Z_STRVAL_P(data) = string_key; - Z_STRLEN_P(data) = str_key_len; + Z_STRLEN_P(data) = str_key_len-1; Z_TYPE_P(data) = IS_STRING; break; case HASH_KEY_IS_LONG:

« previous php.cvs (#4947) next »