Commit Graph

384 Commits

Author SHA1 Message Date
Dmitry Stogov
382f1dddfa Fixed bug #43505 (Assign by reference bug) 2008-01-29 10:45:07 +00:00
Antony Dovgal
183ed5b686 MFH: fix #43596 (array_slice(): $length arg ignored when it is 0) 2008-01-29 00:39:46 +00:00
Rob Richards
90f168deae MFH: fix zts build 2008-01-25 15:52:48 +00:00
Antony Dovgal
2907ae9d73 MFH: endless loop (and stack overflow) protection in compact() 2008-01-25 13:42:36 +00:00
Antony Dovgal
67c8d8d95e MFH: fix #43559 (array_merge_recursive() doesn't behave as expected with duplicate NULL values)
patch by Felipe
2008-01-23 12:09:52 +00:00
Brian Shire
82874e094b MFH: Fix bug #42850 array_walk_recursive() leaves references, refix bug #34982 2008-01-14 22:09:52 +00:00
Sebastian Bergmann
d1dded8751 MFH: Bump copyright year, 2 of 2. 2007-12-31 07:17:19 +00:00
Jani Taskinen
9a4de086cb MFH: - Fixed bug #43541 2007-12-11 09:47:21 +00:00
Ilia Alshanetsky
98bfa2ac74 Fixed bug #43495 (array_merge_recursive() crashes with recursive arrays) 2007-12-05 19:55:31 +00:00
Ilia Alshanetsky
7192e8af15 MFB: Fixed bug #43482 (array_pad() does not warn on very small pad
numbers).
2007-12-03 14:13:27 +00:00
Ilia Alshanetsky
7cf9dcc81c Fixed bug #43386 (array_globals not reset to 0 properly on init) 2007-11-25 15:56:07 +00:00
Jani Taskinen
7f0ad5c1e9 MFH: - Fixed bug #43196 (array_intersect_assoc() crashes with non-array input) 2007-11-06 13:26:59 +00:00
Ilia Alshanetsky
35ab31e7ad Fixed bug #43197 (array_intersect_assoc() does not emit warning messages for
error inputs)
2007-11-05 23:53:23 +00:00
Jani Taskinen
b489251177 - MFH from HEAD:
. Folding tags
  . Parameter parsing
  . SPL debug info
  . array function improvements (not all yet)
  . Improvements to function calling with call_user_* functions
  . Improvements to debugging info in var_dump/print_r
# I propably forgot already something but this all was pretty close tied
# to each other so it wasn't possible to do it in parts.
2007-11-02 19:40:39 +00:00
Jani Taskinen
2d8dc07e3e MFH: fix typo 2007-10-31 13:39:26 +00:00
Scott MacVicar
3fa7ec8508 Fixed bug #43020 (Warning message is missing with shuffle() and more than one argument) 2007-10-18 14:33:14 +00:00
Yiduo (David) Wang
4b4d634cb9 MFH: Added macros for managing zval refcounts and is_ref statuses 2007-10-07 05:22:07 +00:00
Antony Dovgal
1297fa1b8f MF5_2: improved recursion detection in array_walk()
fixes #42752, though the leaks are still there
2007-10-02 10:04:38 +00:00
Jani Taskinen
27e8fa0d31 MFH: sync (adds php_prefix_varname() API function) 2007-10-01 12:34:19 +00:00
Ilia Alshanetsky
24c806c41b Fixed memory leak inside array_intersec (coverity issues #403,#404) 2007-09-22 15:38:00 +00:00
Ilia Alshanetsky
91e8740fe4 Fixed memory leak inside array_diff() (coverity issues #401,#402) 2007-09-22 15:32:11 +00:00
Antony Dovgal
43cc8937b2 MFH: plug leak on error (coverity issue #405) 2007-09-21 13:51:49 +00:00
Dmitry Stogov
9ee4848c3f Improved speed of array_diff_key(), array_diff_assoc() and array_udiff_assoc(). 2007-09-21 13:10:59 +00:00
Dmitry Stogov
8d377a698a 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:22:59 +00:00
Jani Taskinen
c4be8ab831 - Fix the fix for bug #42233 2007-08-10 12:17:26 +00:00
Jani Taskinen
0d5dd8829b - Fixed bug #42233 (Problems with æøå in extract()). 2007-08-08 07:41:09 +00:00
Ilia Alshanetsky
67a2cca930 Fixed bug #41685 (array_push() fails to warn when next index is already
occupied).
2007-06-24 17:37:01 +00:00
Ilia Alshanetsky
24bdf0e368 Fixed bug #41686 (Omitting length param in array_slice not possible). 2007-06-18 16:53:09 +00:00
Antony Dovgal
03b0a479dd fix folding 2007-06-05 12:12:55 +00:00
Ilia Alshanetsky
c34806e145 Fixed bug #41121 (range() overflow handling for large numbers on 32bit
machines).
2007-04-19 23:21:22 +00:00
Wez Furlong
16fc958508 fixes #40848 2007-03-18 20:20:23 +00:00
Stanislav Malyshev
90eff54400 Fix UMR in array_user_key_compare() (MOPB24 by Stefan Esser) 2007-03-16 19:38:58 +00:00
Ilia Alshanetsky
1ac71c4fe9 Fixed bug #40709 (array_reduce() behaves strange with one item stored
arrays).
2007-03-04 17:21:16 +00:00
Antony Dovgal
2c36778e47 MFH: fix #40191 (use of array_unique() with objects triggers segfault) 2007-01-22 08:17:26 +00:00
Sebastian Bergmann
4223aa4d5e MFH: Bump year. 2007-01-01 09:36:18 +00:00
Brian Shire
5bf3df531f Fixed bug #30074
extract with EXTR_REFS was setting EG(unitialized_zval_ptr)->is_ref=1, affecting subsequent usage
  Added test
2006-12-17 20:09:48 +00:00
Ilia Alshanetsky
e64cb1ae4d Optimize extract()
# Patch by Brian Shire
2006-12-10 19:43:03 +00:00
Antony Dovgal
df1a1c8441 MFH: fix #39576 (array_walk() doesn't separate userdata zval) 2006-11-22 10:42:41 +00:00
Antony Dovgal
eca1911b72 fix leak, add test 2006-11-15 22:10:19 +00:00
Ilia Alshanetsky
d4a64fba74 removed bogus char 2006-11-12 17:23:01 +00:00
Ilia Alshanetsky
e0d385a328 Optimized array functions utilizing php_splice(). 2006-11-12 17:13:22 +00:00
Hannes Magnusson
7b81e554ae MFH: Fixed bug#36975 (natcasesort() causes array_pop() to misbehave) 2006-11-12 01:14:39 +00:00
Ilia Alshanetsky
8581c7328f optimize zend_hash_init() with known hash table sizes. 2006-10-03 17:41:47 +00:00
Hannes Magnusson
59fabbb464 MFH: compact() doesnt throw "wrong param count" 2006-10-03 16:37:51 +00:00
Antony Dovgal
e1ff6fe881 support objects in array_walk*() 2006-09-19 09:35:27 +00:00
Antony Dovgal
dba1f1d42f MFH: fix #34066 (recursive array_walk causes segfault)
add tests
2006-09-19 09:04:16 +00:00
Ilia Alshanetsky
8e86a189ec Fixed bug #38464 (array_count_values() mishandles numeric strings). 2006-09-06 17:25:57 +00:00
Andrei Zmievski
3d7a1c3972 Make array_merge(_recursive) handle binary keys safely. (Patch by Matt W) 2006-07-30 03:31:18 +00:00
Andrei Zmievski
8474838a9a +1 for keys 2006-07-24 18:18:33 +00:00
Andrei Zmievski
bb430b3737 Gah. 2006-07-22 16:58:39 +00:00