From: Antony Dovgal Date: Fri, 19 Nov 2004 16:58:38 +0000 (+0000) Subject: MFH: fix bug #30587 (array_multisort doesn't separate zvals before changing them) X-Git-Tag: php-4.3.10RC1~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6db1b839c8ba3e1ea87c2e1112dbdaf3155232c8;p=php MFH: 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 fa104f5ca9..f60fff6a65 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -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. */