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

index 64c5c37f0880ea4dc8b6e3fb7ef50798a250fbbe..1392103c00039e1f29180a2d273a1de60ed8b49d 100644 (file)
@@ -3543,6 +3543,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. */