cvs: php-src(PHP_5_2) /ext/standard array.c
| From: | Moriyoshi Koizumi | Date: | Thu, 12 Feb 2009 18:30:32 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/standard array.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-56199@lists.php.net to get a copy of this message | ||
moriyoshi Thu Feb 12 18:30:32 2009 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/standard array.c
Log:
* MFH: Fix bug #47370 (BC breakage of array_unique())
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/array.c?r1=1.308.2.21.2.63&r2=1.308.2.21.2.64&diff_format=u
Index: php-src/ext/standard/array.c
diff -u php-src/ext/standard/array.c:1.308.2.21.2.63 php-src/ext/standard/array.c:1.308.2.21.2.64
--- php-src/ext/standard/array.c:1.308.2.21.2.63 Wed Dec 31 11:17:44 2008
+++ php-src/ext/standard/array.c Thu Feb 12 18:30:31 2009
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: array.c,v 1.308.2.21.2.63 2008/12/31 11:17:44 sebastian Exp $ */
+/* $Id: array.c,v 1.308.2.21.2.64 2009/02/12 18:30:31 moriyoshi Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -2839,7 +2839,7 @@
};
struct bucketindex *arTmp, *cmpdata, *lastkept;
unsigned int i;
- long sort_type = SORT_REGULAR;
+ long sort_type = SORT_STRING;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z|l", &array, &sort_type)
== FAILURE) {
return;