From: Moriyoshi Koizumi Date: Fri, 14 Feb 2003 18:44:51 +0000 (+0000) Subject: MFH(r1.357): Fixed bug #22224 X-Git-Tag: php-4.3.2RC1~211 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c81a6322c1468c0e38d2b6fc9438faae58b57a2c;p=php MFH(r1.357): Fixed bug #22224 MFH: Added test case for the bug --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 1da3416aed..970114a49a 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -836,7 +836,8 @@ PHPAPI void php_implode(zval *delim, zval *arr, zval *return_value) while (zend_hash_get_current_data_ex(Z_ARRVAL_P(arr), (void **) &tmp, &pos) == SUCCESS) { - convert_to_string_ex(tmp); + SEPARATE_ZVAL(tmp); + convert_to_string(&tmp); smart_str_appendl(&implstr, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); if (++i != numelems) {