]> granicus.if.org Git - php/commitdiff
(PHP implode): Properly separate zval for another case.
authorAndrei Zmievski <andrei@php.net>
Fri, 15 Oct 1999 14:53:56 +0000 (14:53 +0000)
committerAndrei Zmievski <andrei@php.net>
Fri, 15 Oct 1999 14:53:56 +0000 (14:53 +0000)
ext/standard/string.c

index d9dd784d22f1dd4a100cb032da20d0be7e6c599c..0656a999abc88cf7831955ccdb28046b47e42fe8 100644 (file)
@@ -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()",