From: Antony Dovgal Date: Fri, 19 Nov 2004 16:55:37 +0000 (+0000) Subject: fix bug #30587 (array_multisort doesn't separate zvals before changing them) X-Git-Tag: RELEASE_0_2~654 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a588879ef4b7c6c81427344770d1799cb3a4086;p=php fix bug #30587 (array_multisort doesn't separate zvals before changing them) --- diff --git a/ext/standard/array.c b/ext/standard/array.c index 653d39d822..aee0609a05 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -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. */