Commit Graph

462 Commits

Author SHA1 Message Date
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
Ilia Alshanetsky
4f539c9a28 MFB: Fixed bug #43197 (array_intersect_assoc() does not emit warning
messages for error inputs)
2007-11-05 23:55:21 +00:00
Jani Taskinen
6820ea643d - WS + CS and namespace protection 2007-11-02 16:19:31 +00:00
Antony Dovgal
02188d66c4 fix typo and silence compile warning 2007-11-02 12:03:25 +00:00
Jani Taskinen
1c47fc23df - Fix the fix for bug #41686 2007-11-02 11:48:35 +00:00
Jani Taskinen
231fcedd03 MFB52: Fixed bug #41686 2007-11-02 10:50:33 +00:00
Jani Taskinen
7bd01cbce2 - Fix typo (bug #43125) 2007-10-31 13:39:00 +00:00
Yiduo (David) Wang
95da0dc570 Added macros for managing zval refcounts and is_ref statuses 2007-10-07 05:15:07 +00:00
Antony Dovgal
b50ed5df9c MF5_2: improved recursion detection in array_walk()
fixes #42752, though the leaks are still there
2007-10-02 10:06:15 +00:00
Jani Taskinen
30230074ba - ws+cs (prepare syncing some parts to PHP_5_3) 2007-09-30 05:15:35 +00:00
Antony Dovgal
cd519f058c plug leak on error (coverity issue #405) 2007-09-21 13:50:47 +00:00
Dmitry Stogov
f5ee0dc18e Improved speed of array_diff_key(), array_diff_assoc() and array_udiff_assoc(). 2007-09-21 13:11:16 +00:00
Dmitry Stogov
d5473d816e Improved speed of array_intersect_key(), array_intersect_assoc() and array_uintersect_assoc(). (100 times faster on arrays with 100000 elements) 2007-09-20 09:23:11 +00:00
Antony Dovgal
a254d5c574 empty/invalid names are not allowed (empty prefixes are) 2007-08-10 13:20:22 +00:00
Antony Dovgal
c13e337f27 allow empty prefix (restore 5_2 behavior) 2007-08-10 12:54:38 +00:00
Jani Taskinen
28cf1788a9 MFB: Fixed the fix for bug #42233 and added test for it. 2007-08-10 12:23:16 +00:00