tony2001 Fri Nov 19 11:58:38 2004 EDT
Modified files: (Branch: PHP_4_3)
/php-src/ext/standard array.c
Log:
MFH: 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.199.2.37&r2=1.199.2.38&ty=u
Index: php-src/ext/standard/array.c
diff -u php-src/ext/standard/array.c:1.199.2.37
php-src/ext/standard/array.c:1.199.2.38
--- php-src/ext/standard/array.c:1.199.2.37 Fri Sep 24 09:07:18 2004
+++ php-src/ext/standard/array.c Fri Nov 19 11:58:38 2004
@@ -22,7 +22,7 @@
*/
-/* $Id: array.c,v 1.199.2.37 2004/09/24 13:07:18 derick Exp $ */
+/* $Id: array.c,v 1.199.2.38 2004/11/19 16:58:38 tony2001 Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -2934,6 +2934,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