]> granicus.if.org Git - php/commitdiff
fix bug #30587 (array_multisort doesn't separate zvals before changing them)
authorAntony Dovgal <tony2001@php.net>
Fri, 19 Nov 2004 16:55:37 +0000 (16:55 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 19 Nov 2004 16:55:37 +0000 (16:55 +0000)
ext/standard/array.c

index 653d39d822721e94dc0a898c31f829ced898e326..aee0609a05f6e44c924971e8cc2517294b4ff644 100644 (file)
@@ -3650,6 +3650,7 @@ PHP_FUNCTION(array_multisort)
         * array, and the very first argument has to be an array.
         */
        for (i = 0; i < argc; i++) {
+               SEPARATE_ZVAL(args[i]);
                if (Z_TYPE_PP(args[i]) == IS_ARRAY) {
                        /* We see the next array, so we update the sort flags of
                           the previous array and reset the sort flags. */