Commit Graph

477 Commits

Author SHA1 Message Date
Moriyoshi Koizumi
4306389206 * Roll it back then. I wonder if defaulting it to SORT_REGULAR would work well
and I think allowing user-supplied comparator should make more sense when it
  comes to objects.
2009-05-15 17:02:34 +00:00
Christopher Jones
79be235483 New array_multisort() test and code comment fix (Simon Westcott) 2009-05-15 16:44:51 +00:00
Etienne Kneuss
b2d291aa82 MFB: Fix #48224 (Remove incorrect shuffle) 2009-05-10 16:45:30 +00:00
Felipe Pena
8ecf8ede1f - Removed:
- UG(unicode) checks
       - pcre_cache_entry.unicode_mode
- Changed:
       - ZEND_STR_TYPE -> IS_UNICODE
       - convert_to_text -> convert_to_unicode
       - convert_to_text_ex -> convert_to_unicode_ex

(Felipe, Steph)
2009-03-26 20:02:53 +00:00
Marcus Boerger
d4f5b3f0a9 - This is PHP 6 - if this ... ever gets out 2009-03-10 23:40:06 +00:00
Andrei Zmievski
b7d4fa920e Revert bogus fix for #47370. 2009-02-13 22:35:18 +00:00
Moriyoshi Koizumi
6db49f953a * Fix bug #47370 (BC breakage of array_unique()) 2009-02-12 18:29:15 +00:00
Dmitry Stogov
85a3b81fb2 Fixed bug #47329 (Crash in garbage collector) 2009-02-09 10:47:19 +00:00
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Arnaud Le Blanc
3b0cd9f644 Fixed bug #46873 (extract($foo) crashes if $foo['foo'] exists) 2008-12-27 03:06:16 +00:00
Andrei Zmievski
540131adcb Add sort flags parameter to array_unique(). 2008-12-12 19:19:04 +00:00
Arnaud Le Blanc
1064f9721b Fixed bugs #44181 & #44182 (extract() and references)
(robin_fernandes at uk dot ibm dot com)
2008-11-26 00:59:13 +00:00
Stanislav Malyshev
3da4e38bdf MFB: restore BC for arrays 2008-11-24 19:24:09 +00:00
Arnaud Le Blanc
5ef7ecafc1 initialize optional vars 2008-10-21 22:06:49 +00:00
Nuno Lopes
2c49010756 MFB: clean some dead code 2008-09-23 15:22:05 +00:00
Felipe Pena
a69b38f7e9 - Removed the undocumented object support in the leftover array functions [DOC]
(natcasesort, natsort, array_walk, array_walk_recursive, array_unique, array_key_exists)
- Changed HASH_OF() to Z_ARRVAL_P()
- Fixed bug #45937 (array_walk and array_walk_recursive can alter private/protected object variable)
2008-08-29 02:48:28 +00:00
Lars Strojny
fefef1621f Allow mixed $initial (patch by Christian Seiler) 2008-08-20 20:35:16 +00:00
Felipe Pena
d54a413912 - New parameter parsing API 2008-08-17 22:11:21 +00:00
Felipe Pena
f168ea0fb3 - New parameter parsing API (for min() and max()) 2008-08-10 17:49:30 +00:00
Felipe Pena
611ecc5111 - Added parameter TSRMLS_DC in zend_is_callable() 2008-08-02 04:40:45 +00:00
Johannes Schlüter
e0e15347e2 - Add array_replace/array_replace_recursive (Mett Wilmas) 2008-07-31 20:17:07 +00:00
Felipe Pena
9c262a3343 - Improved parameter handling 2008-07-24 03:06:16 +00:00
Felipe Pena
ca536ea944 - Fixed bug #45605 (array_uintersect_assoc gives incorrect error message)
(patch by ilewis at uk dot ibm dot com)
2008-07-23 16:27:16 +00:00
Etienne Kneuss
cecf208c3f Fix resolution rule of count vs. handler 2008-07-09 21:29:39 +00:00
Matt Wilmas
0cc9f01212 Initialize with length instead of 0 (and thanks Antony for finding) 2008-06-02 11:20:17 +00:00
Antony Dovgal
e58b49fc4c fix uninitialized variable 2008-06-02 10:27:42 +00:00
Matt Wilmas
3a9eea4a8d Only check args once in php_array_diff_key/intersect_key, not on each iteration. This also makes sure ALL args are checked (pre-5.2.5 behavior)
- Also, use new hash_quick_del function where possible
2008-05-30 10:54:16 +00:00
Matt Wilmas
9c37df900c Add array_init_size() and use it where array size is known at initialization 2008-05-27 10:28:25 +00:00
Felipe Pena
ad69a4c588 - MFB: Making compatible with 64bit platform 2008-05-18 15:52:42 +00:00
Dmitry Stogov
1d0f893b49 Lazy EG(active_symbol_table) initialization 2008-04-29 08:15:49 +00:00
Felipe Pena
8ae1faf517 MFB: Fixed bug #42177 (Warning "array_merge_recursive(): recursion detected" comes again...) 2008-03-12 19:21:30 +00:00
Felipe Pena
33c6806efe Fixed Bug #44212 (array_diff_assoc not reporting missing arguments) 2008-02-22 13:48:02 +00:00
Antony Dovgal
97385e1dca recursion protection in count() 2008-02-15 09:33:00 +00:00
Felipe Pena
0f9a030d87 MFB: Fixed Bug #42838 (Wrong results in array_diff_uassoc) 2008-02-14 14:17:32 +00:00
Dmitry Stogov
7412aae873 Fixed memory leak 2008-02-14 08:46:42 +00:00
Felipe Pena
fd18a414a0 MFB: array_slice() - Fixed behavior when NULL is given in third parameter (BC) 2008-02-12 01:49:42 +00:00
Antony Dovgal
1d540b4255 this is integer, not pointer 2008-02-11 13:34:26 +00:00
Ilia Alshanetsky
4545b5bf25 MFB: Fixed bug #44046 (crash inside array_slice() function with an invalid
by-ref offset).
2008-02-05 16:02:23 +00:00
Dmitry Stogov
5d1e742056 Fixed bug #43505 (Assign by reference bug) 2008-01-29 10:45:19 +00:00
Antony Dovgal
251e3a649d fix #43596 (array_slice(): $length arg ignored when it is 0) 2008-01-29 00:39:26 +00:00
Rob Richards
9f3efb0e5a fix zts build 2008-01-25 15:52:00 +00:00
Antony Dovgal
c98b4a5c68 endless loop (and stack overflow) protection in compact() 2008-01-25 13:42:24 +00:00
Antony Dovgal
f6169ad7ca fix #43559 (array_merge_recursive() doesn't behave as expected with duplicate NULL values)
patch by Felipe
2008-01-23 11:20:00 +00:00
Brian Shire
e643a40051 Fix bug #42850 array_walk_recursive() leaves references, refix bug #34982 2008-01-14 22:08:00 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Jani Taskinen
b6a2755df3 - Fixed bug #43541 (array_slice() length parameter messed up) 2007-12-11 08:30:46 +00:00
Ilia Alshanetsky
40226917ab MFB: Fixed bug #43495 (array_merge_recursive() crashes with recursive
arrays)
2007-12-05 19:57:09 +00:00
Ilia Alshanetsky
678c532eee MFB: Fixed bug #43482 (array_pad() does not warn on very small pad
numbers).
2007-12-03 14:13:45 +00:00
Ilia Alshanetsky
a204180d64 MFB : Fixed bug #43386 (array_globals not reset to 0 properly on init) 2007-11-25 15:56:58 +00:00
Jani Taskinen
a27600b42a - Fixed bug #43196 (array_intersect_assoc() crashes with non-array input)
# Note: Same problem was with array_diff_assoc()
2007-11-06 13:26:24 +00:00