Commit Graph

216 Commits

Author SHA1 Message Date
Raghubansh Kumar
dfbaff6539 New testcases for array_intersect() function 2007-10-27 12:15:16 +00:00
Robert Nicholson
250cee6329 Remove unneeded INI sections 2007-10-26 16:09:34 +00:00
Raghubansh Kumar
ed56c6e38c more testcases for array_unshift() function 2007-10-26 11:49:50 +00:00
Robert Nicholson
9e761076b8 new testcases for array_splice 2007-10-26 11:07:13 +00:00
Robert Nicholson
656d0e468b new testcases for max and min 2007-10-26 11:01:35 +00:00
Raghubansh Kumar
b3044c49ed more testcases for array_filter() function 2007-10-22 11:16:03 +00:00
Raghubansh Kumar
36ca7b94e6 New testcases for array_rand() function 2007-10-19 18:41:13 +00:00
Raghubansh Kumar
dd465b457c New testcases for array_fill() function 2007-10-19 18:31:16 +00:00
Raghubansh Kumar
63b1e9fb86 New testcases for array_filter() function 2007-10-19 18:20:02 +00:00
Raghubansh Kumar
f1187f0fca New testcases for array_unshift() function 2007-10-19 09:16:29 +00:00
Raghubansh Kumar
55d0b9780f New testcases for array_flip() function 2007-10-15 06:34:35 +00:00
Raghubansh Kumar
dfae3d3f57 New testcases for array_reverse() function 2007-10-15 06:24:40 +00:00
Jani Taskinen
2bc631fb40 MFH:- Added common getopt implementation to core.
MFH:- Added long-option feature to getopt().
MFH:- Made getopt() available on win32 systems.
MFH:  Patch by: David Soria Parra <dsp@php.net>
[DOC]: These changes will be available from 5.3+

# Note: Fixed also tests and synced basic_functions.c with HEAD.
2007-10-01 12:40:54 +00:00
Raghubansh Kumar
32b432f878 replaced by array_search_variation1.phpt, hence removed. 2007-09-22 06:58:33 +00:00
Raghubansh Kumar
12bc950491 update and split of testcases for functions array_search() and in_array() 2007-09-22 06:53:58 +00:00
Antony Dovgal
43cc8937b2 MFH: plug leak on error (coverity issue #405) 2007-09-21 13:51:49 +00:00
Antony Dovgal
e2a79ed73e .. and remove the original one 2007-08-10 12:30:21 +00:00
Antony Dovgal
296147ea6e split the test 2007-08-10 12:30:09 +00:00
Jani Taskinen
c4be8ab831 - Fix the fix for bug #42233 2007-08-10 12:17:26 +00:00
Antony Dovgal
a13e153942 remove the tests, they've been splitted into smaller ones 2007-07-23 19:19:09 +00:00
Antony Dovgal
241e66a708 MFH: split the test 2007-07-13 16:47:39 +00:00
Antony Dovgal
030252067e MFH 2007-06-28 16:07:12 +00:00
Antony Dovgal
4948afff78 MFH 2007-06-28 15:27:09 +00:00
Antony Dovgal
93dfce49ca remove 32bit restriction 2007-06-28 15:10:57 +00:00
Antony Dovgal
6b75f7bb82 more smaller tests 2007-06-28 15:04:47 +00:00
Antony Dovgal
b4e74fe9b5 MFH 2007-06-28 14:51:35 +00:00
Ilia Alshanetsky
24bdf0e368 Fixed bug #41686 (Omitting length param in array_slice not possible). 2007-06-18 16:53:09 +00:00
Brian Shire
55b5b89ef7 fix sprintf/printf %u tests so they work correctly on both 32-bit and 64-bit. (broken in previous fix)
# just made these EXPECTREGEX expressions, if there's a prefered way to comply with both 32/64 bit let me know.
2007-06-04 01:23:07 +00:00
Antony Dovgal
6434290092 fix test
add separate test for 64bit
2007-05-18 20:45:50 +00:00
Zoe Slattery
8f06575c23 Updated range() test 2007-05-16 21:07:33 +00:00
Antony Dovgal
a640896685 fix test 2007-05-14 16:18:02 +00:00
Antony Dovgal
9100e9efde add 64bit tests 2007-05-14 11:04:30 +00:00
Antony Dovgal
b33de5d0aa fix tests - make them 32bit only, 64bit version will be later
add --INI-- section
remove recursive arrays, that thing should be in a separate test
2007-05-14 10:57:04 +00:00
Raghubansh Kumar
42ae6b508e New version of 005.phpt, array_change_key_case.phpt, array_key_exists.phpt, array_keys.phpt, array_map.phpt, array_pop.phpt, array_search.phpt, array_values.phpt, each.phpt, end.phpt, extract.phpt 2007-05-12 09:53:30 +00:00
Raghubansh Kumar
02dd014013 New version of 009.phpt 2007-05-12 09:50:40 +00:00
Antony Dovgal
3a46e8ab1f fix tests 2007-05-07 22:30:16 +00:00
Antony Dovgal
1f65545121 fix test names 2007-05-07 18:03:01 +00:00
Antony Dovgal
66859a74de fix tests 2007-04-26 23:30:00 +00:00
Antony Dovgal
d66080d6f0 make this test 32bit only 2007-04-20 16:14:37 +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
Stanislav Malyshev
a424d65e0b add test 2007-03-16 19:55:21 +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
eae1072ccc MFH 2007-01-22 08:21:57 +00:00
Antony Dovgal
2c36778e47 MFH: fix #40191 (use of array_unique() with objects triggers segfault) 2007-01-22 08:17:26 +00:00
Ilia Alshanetsky
652c7096b2 Fixed test for 64bit systems 2006-12-25 21:07:53 +00:00
Hannes Magnusson
b12e3e1475 Fix tests 2006-12-19 10:03:24 +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
Antony Dovgal
9ce985bbae cosmetic improvements 2006-12-05 23:03:19 +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
d1acb8d4eb add new tests, improve existing ones 2006-11-15 22:44:29 +00:00
Antony Dovgal
eca1911b72 fix leak, add test 2006-11-15 22:10:19 +00:00
Hannes Magnusson
7b81e554ae MFH: Fixed bug#36975 (natcasesort() causes array_pop() to misbehave) 2006-11-12 01:14:39 +00:00
Dmitry Stogov
25f01e8ec3 Fixed tests 2006-11-09 08:29:18 +00:00
Ilia Alshanetsky
d6b3b73490 Fixed tests 2006-11-07 20:24:38 +00:00
Antony Dovgal
8c09e1ca40 fix test name 2006-09-28 22:02:04 +00:00
Hannes Magnusson
db5dc9d5d8 fix test 2006-09-19 12:25:27 +00:00
Antony Dovgal
bc60e07d57 argh.. nuke UEXPECTF 2006-09-19 09:40:00 +00:00
Antony Dovgal
e1ff6fe881 support objects in array_walk*() 2006-09-19 09:35:27 +00:00
Antony Dovgal
0fe381cd70 fix tests 2006-09-19 09:07:56 +00:00
Antony Dovgal
dba1f1d42f MFH: fix #34066 (recursive array_walk causes segfault)
add tests
2006-09-19 09:04:16 +00:00
Antony Dovgal
88b59df262 add new tests 2006-09-07 11:48:30 +00:00
Ilia Alshanetsky
8e86a189ec Fixed bug #38464 (array_count_values() mishandles numeric strings). 2006-09-06 17:25:57 +00:00
Marcus Boerger
31a8d6a6b3 - MFH array_fill_keys, better unicode support, use new param parsing API 2006-07-15 12:14:07 +00:00
Marcus Boerger
87c64280b0 - MFH Added array_fill_keys(). (Marcus, Mathew W) 2006-07-15 10:21:10 +00:00
Antony Dovgal
7ff8061d0a add new tests by Ligaya Turmelle 2006-07-11 21:28:38 +00:00
Antony Dovgal
48098f0774 fix tests 2006-06-01 13:17:36 +00:00
Marcus Boerger
1448086b22 - MFH Add more tests from Ligaya Turmelle 2006-05-23 23:47:44 +00:00
Antony Dovgal
c13ba99551 add new tests by Ligaya Turmelle 2006-05-19 07:44:24 +00:00
Antony Dovgal
f046cdf3fa fix #35821 (array_map() segfaults when exception is throwed from the callback) 2005-12-27 22:32:01 +00:00
Antony Dovgal
17907a50cd fix test
add new one for 64bit only
2005-12-16 15:52:09 +00:00
foobar
e02f8809f1 - Fixed test. Some people might actually be using php.ini-dist which
has precision set to 12. (and this test results need 14)
2005-11-01 22:39:53 +00:00
Ilia Alshanetsky
57510065ce Fixed bug #35022, #35019 (Regression in the behavior of key/current
functions).
2005-10-30 18:03:30 +00:00
Ilia Alshanetsky
d22d6910ad Fixed Bug #35014 (array_product() always returns 0). 2005-10-30 13:44:26 +00:00
Dmitry Stogov
a3cb94abff Fixed bug #34982 (array_walk_recursive() modifies elements outside function scope) 2005-10-28 10:06:43 +00:00
Dmitry Stogov
f9fb94ff00 Reverted patch for bug #34934. Bug is marked as bogus. 2005-10-24 06:58:42 +00:00
Dmitry Stogov
75a548a7e9 Fixed bug #34934 (offsetExists is not called from array_key_exists) 2005-10-21 15:19:40 +00:00
Derick Rethans
8f4112bfdd - Fixed bug #29361 (var_export() producing invalid code). (Derick) 2005-10-17 14:38:12 +00:00
Antony Dovgal
1f6debba12 MFH: fix test 2005-10-05 09:00:36 +00:00
Dmitry Stogov
7fda1750f1 MFH 2005-09-01 13:03:00 +00:00
Dmitry Stogov
e615889d6b Fixed bug #34277 (array_filter() crashes with references and objects) 2005-09-01 12:00:37 +00:00
foobar
54df2c9d36 no DOS EOLs! 2005-08-11 23:53:59 +00:00
foobar
4ddaf76efc - Fixed test 2005-08-11 23:51:35 +00:00
Dmitry Stogov
54931f5259 Fixed bug #33940 (array_map() fails to pass by reference when called recursively) 2005-08-10 08:22:01 +00:00
Dmitry Stogov
96d755978c Fixed bug #29253 (array_diff with $GLOBALS argument fails) 2005-08-10 07:43:07 +00:00
Dmitry Stogov
98e70ab585 Fixed bug #33989 (extract($GLOBALS,EXTR_REFS) crashes PHP) 2005-08-04 10:34:39 +00:00
foobar
be10050d8f Added test for bug #25359 2005-07-30 13:37:57 +00:00
Dmitry Stogov
1d33a3e95e Fixed bug #31158 (array_splice on $GLOBALS crashes) 2005-07-04 10:01:10 +00:00
foobar
8566f52297 "64M should be enough for everyone." -- Jani, 2005 :) 2005-06-22 12:54:04 +00:00
foobar
f2ddefcc56 - This is no bug. 2005-06-18 02:06:31 +00:00
Antony Dovgal
8d2dd7901c add news entry and test for bug #33382 2005-06-17 10:53:15 +00:00
foobar
7101cd821a - It is nice to close the script with ?>.. 2005-06-07 21:39:54 +00:00
Antony Dovgal
36d13eb7c9 add testcase for bug #30833 2005-04-13 08:23:39 +00:00
foobar
a075b651be Added SKIPIF 2005-03-22 16:03:10 +00:00
foobar
77910ec63f Addded test for locale aware sort 2005-03-22 15:38:25 +00:00
Marcus Boerger
e38141478a - Check another incarnation of bug #30266 2005-03-19 14:24:17 +00:00
Derick Rethans
ff1687731d - Fixed bug #32021: Crash caused by range('', 'z') 2005-02-18 13:37:23 +00:00
Moriyoshi Koizumi
88ce94a3c2 - Add testcases for bug #29493 and #31213. 2005-01-02 06:51:03 +00:00
Derick Rethans
13c2cbb515 - MF43: Fixed bug #31072 (var_export() does not output an array element with an
empty string key). (Derick)
2004-12-17 14:40:39 +00:00
Antony Dovgal
b6b8bf0010 fix array_walk_recursive() so it doesn't reuse cached fci between calls
and add test for it
2004-12-03 17:43:23 +00:00
Marcus Boerger
bb77132391 - Add new test 2004-10-04 17:53:55 +00:00