diff options
author | Antony Dovgal <tony2001@php.net> | 2004-11-19 16:57:06 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2004-11-19 16:57:06 +0000 |
commit | bb7515902c3db59d39023b8774af5c77d988c255 (patch) | |
tree | 177a477380085b4f57131bebbde94a38d78291ab | |
parent | 8d3bd0f4f7d91ef85f054f91dd9ce5bbdbc084b8 (diff) | |
download | php-git-bb7515902c3db59d39023b8774af5c77d988c255.tar.gz |
MFH: fix bug #30587 (array_multisort doesn't separate zvals before changing them)
-rw-r--r-- | ext/standard/array.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c index 64c5c37f08..1392103c00 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -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. */ |