cvs: php4 /ext/standard string.c

From: Date: Wed, 21 May 2003 17:44:09 +0000
Subject: cvs: php4 /ext/standard string.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-21187@lists.php.net to get a copy of this message
sterling Wed May 21 13:44:09 2003 EDT Modified files: /php4/ext/standard string.c Log: seems there is only the stupid way to be stupid (implode copying array elements) at least we check for IS_STRING, which should clear this up 90% of the time Index: php4/ext/standard/string.c diff -u php4/ext/standard/string.c:1.384 php4/ext/standard/string.c:1.385 --- php4/ext/standard/string.c:1.384 Wed May 21 13:38:17 2003 +++ php4/ext/standard/string.c Wed May 21 13:44:08 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: string.c,v 1.384 2003/05/21 17:38:17 sterling Exp $ */ +/* $Id: string.c,v 1.385 2003/05/21 17:44:08 sterling Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -837,12 +837,8 @@ while (zend_hash_get_current_data_ex(Z_ARRVAL_P(arr), (void **) &tmp, &pos) == SUCCESS) { if ((*tmp)->type != IS_STRING) { - if (PZVAL_IS_REF(*tmp)) { - SEPARATE_ZVAL(tmp); - convert_to_string(*tmp); - } else { - convert_to_string_ex(tmp); - } + SEPARATE_ZVAL(tmp); + convert_to_string(*tmp); } smart_str_appendl(&implstr, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp));

« previous php.cvs (#21187) next »