]> 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:58:38 +0000 (16:58 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 19 Nov 2004 16:58:38 +0000 (16:58 +0000)
ext/standard/array.c

index fa104f5ca90dd838350fdaae7cd524cc9c949b28..f60fff6a6506010c55ba09f39a6e8509b38b97fe 100644 (file)
@@ -2934,6 +2934,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. */