From c81a6322c1468c0e38d2b6fc9438faae58b57a2c Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Fri, 14 Feb 2003 18:44:51 +0000 Subject: [PATCH] MFH(r1.357): Fixed bug #22224 MFH: Added test case for the bug --- ext/standard/string.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.50.1