tony2001 Fri Nov 19 11:55:38 2004 EDT Modified files: /php-src/ext/standard array.c Log: fix bug #30587 (array_multisort doesn't separate zvals before changing them) http://cvs.php.net/diff.php/php-src/ext/standard/array.c?r1=1.282&r2=1.283&ty=u Index: php-src/ext/standard/array.c diff -u php-src/ext/standard/array.c:1.282 php-src/ext/standard/array.c:1.283 --- php-src/ext/standard/array.c:1.282 Mon Nov 1 17:28:59 2004 +++ php-src/ext/standard/array.c Fri Nov 19 11:55:37 2004 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: array.c,v 1.282 2004/11/01 22:28:59 helly Exp $ */ +/* $Id: array.c,v 1.283 2004/11/19 16:55:37 tony2001 Exp $ */ #include "php.h" #include "php_ini.h" @@ -3650,6 +3650,7 @@ * 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. */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php