From: Andrei Zmievski Date: Fri, 15 Oct 1999 14:53:56 +0000 (+0000) Subject: (PHP implode): Properly separate zval for another case. X-Git-Tag: php-4.0b3_RC2~168 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d69d118cbd401dfdc1766256347a52f0aaf724ca;p=php (PHP implode): Properly separate zval for another case. --- diff --git a/ext/standard/string.c b/ext/standard/string.c index d9dd784d22..0656a999ab 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -307,8 +307,9 @@ PHP_FUNCTION(implode) arr = *arg1; delim = *arg2; } else if ((*arg2)->type == IS_ARRAY) { - convert_to_string_ex(arg1); + SEPARATE_ZVAL(arg2) arr = *arg2; + convert_to_string_ex(arg1); delim = *arg1; } else { php_error(E_WARNING, "Bad arguments to %s()",