cvs: /php4/ext/standard string.c

From: Date: Fri, 30 Jul 1999 22:16:39 +0000
Subject: cvs: /php4/ext/standard string.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-2991@lists.php.net to get a copy of this message
zeev Fri Jul 30 18:16:39 1999 EDT Modified files: /php4/ext/standard string.c Log: This should fix the implode() problem Index: php4/ext/standard/string.c diff -u php4/ext/standard/string.c:1.25 php4/ext/standard/string.c:1.26 --- php4/ext/standard/string.c:1.25 Sat Jul 24 18:16:54 1999 +++ php4/ext/standard/string.c Fri Jul 30 18:16:38 1999 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: string.c,v 1.25 1999/07/24 22:16:54 andrey Exp $ */ +/* $Id: string.c,v 1.26 1999/07/30 22:16:38 zeev Exp $ */ /* Synced with php3 revision 1.193 1999-06-16 [ssb] */ @@ -304,6 +304,7 @@ /* convert everything to strings, and calculate length */ _php3_hash_internal_pointer_reset(arr->value.ht); while (_php3_hash_get_current_data(arr->value.ht, (void **) &tmp) == SUCCESS) { + SEPARATE_ZVAL(tmp); convert_to_string(*tmp); if ((*tmp)->type == IS_STRING && (*tmp)->value.str.val != undefined_variable_string) { len += (*tmp)->value.str.len;

« previous php.version4 (#2991) next »