Commit Graph

316 Commits

Author SHA1 Message Date
Dmitry Stogov
382f1dddfa Fixed bug #43505 (Assign by reference bug) 2008-01-29 10:45:07 +00:00
Robert Nicholson
1d6ac15b3d - MFH compact_variation1.phpt - fix for bug #29044 2008-01-29 08:50:43 +00:00
Robert Nicholson
be2ae4e76f - Add a basic test for array_shuffle() 2008-01-25 00:32:22 +00:00
Robert Nicholson
3b8256dce4 - add some basic tests for array diff and intersection functions 2008-01-25 00:13:49 +00:00
Robert Nicholson
c09d8d931f - New tests for compact() 2008-01-24 14:51:20 +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
Raghubansh Kumar
0b26f6fe7e New testcases for array_diff() function 2008-01-04 14:02:27 +00:00
Raghubansh Kumar
7dc36cff7c New testcases for array_diff_assoc() function 2008-01-04 14:01:45 +00:00
Raghubansh Kumar
59558b73cb this testcase has been split into many smaller testcases and committed. 2008-01-03 09:46:00 +00:00
Raghubansh Kumar
4cadbee716 new smaller testcases for array_map() function 2008-01-03 09:43:45 +00:00
Dmitry Stogov
d27e5cd152 Fixed test 2007-12-21 09:40:27 +00:00
Robert Nicholson
9e8f7a00e3 new tests for array_map usage variations - string keys and references 2007-12-20 11:18:34 +00:00
Derick Rethans
9541a66cb8 - MFH: Fixed var_export() for array keys
- MFH: Fixed broken explode() test
2007-12-18 10:53:39 +00:00
Raghubansh Kumar
f5f92c1940 fix tests 2007-12-17 13:02:27 +00:00
Dmitry Stogov
2b981769a3 Fixed bug #42868 (Floats cast to integer produce unpredicatable results). (Zoe Slattery) 2007-12-17 10:02:13 +00:00
Dmitry Stogov
d8afc7ad37 Fixed test 2007-12-13 07:57:39 +00:00
Ilia Alshanetsky
2199624ad1 WS 2007-12-11 18:30:01 +00:00
Raghubansh Kumar
b1f1baba4d New testcases for array_walk_recursive() function 2007-12-11 10:45:50 +00:00
Raghubansh Kumar
b2def646b6 New testcases for array_walk() function 2007-12-11 10:45:25 +00:00
Jani Taskinen
9a4de086cb MFH: - Fixed bug #43541 2007-12-11 09:47:21 +00:00
Raghubansh Kumar
5ce6116777 New testcases for array_merge_recursive() function 2007-12-11 09:07:41 +00:00
Raghubansh Kumar
ccb0f19d1c new testcases for array_unique() function 2007-12-09 14:41:10 +00:00
Ilia Alshanetsky
98bfa2ac74 Fixed bug #43495 (array_merge_recursive() crashes with recursive arrays) 2007-12-05 19:55:31 +00:00
Raghubansh Kumar
6121702d04 New testcases for array_pad() function 2007-12-03 12:51:56 +00:00
Raghubansh Kumar
1eae97fbb9 New testcases for array_chunk() function 2007-12-03 03:54:11 +00:00
Ilia Alshanetsky
f6853cccbd Fixed tests 2007-11-28 14:49:20 +00:00
Raghubansh Kumar
504e223d83 Marked with defect 2007-11-28 03:44:52 +00:00
Raghubansh Kumar
d5acf6ad81 New testcases for array_combine() function 2007-11-27 15:17:07 +00:00
Raghubansh Kumar
73f3139119 New testcases for array_sum() function 2007-11-27 14:59:30 +00:00
Raghubansh Kumar
13357b0188 New testcases for sizeof() function 2007-11-16 17:54:31 +00:00
Raghubansh Kumar
3f8200fc79 fix tests: removed values that generate diff. output on Linux64 2007-11-16 17:06:43 +00:00
Raghubansh Kumar
b65ffa0876 New testcases for uasort() function 2007-11-14 17:19:45 +00:00
Jani Taskinen
ea05938263 fix test 2007-11-14 14:08:51 +00:00
Raghubansh Kumar
ab9db3e773 New testcases for ksort() function 2007-11-12 15:53:20 +00:00
Raghubansh Kumar
42de41ad4a New testcases for krsort() function 2007-11-12 15:52:25 +00:00
Antony Dovgal
f6be2ee565 MFH: fix test 2007-11-08 10:13:33 +00:00
Antony Dovgal
984842e321 fix test 2007-11-08 10:03:52 +00:00
Antony Dovgal
a59a7d5c3c MFH 2007-11-08 08:11:55 +00:00
Antony Dovgal
a670a61951 fix tests 2007-11-07 12:07:16 +00:00
Ilia Alshanetsky
75bbdac25d Fixed tests on 64bit machines 2007-11-07 01:42:51 +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
Raghubansh Kumar
3374078734 New testcases for asort() function 2007-11-05 16:42:56 +00:00
Raghubansh Kumar
2a72f56b30 fix typo in title 2007-11-05 16:22:37 +00:00
Raghubansh Kumar
c9b73bf23d New testcases for sort() function 2007-11-05 15:30:49 +00:00
Raghubansh Kumar
49785e26ae New testcases for array_intersect_assoc() function 2007-11-05 14:31:40 +00:00
Jani Taskinen
a541bb8078 - Fix tests
- Update README.PARAMETER_PARSING_API
2007-11-02 19:41:12 +00:00
Robert Nicholson
a174f1331d update min_error and max_error testcases to take into account bug fix for bug#43125 2007-11-01 08:42:49 +00:00
Jani Taskinen
2d8dc07e3e MFH: fix typo 2007-10-31 13:39:26 +00:00
Raghubansh Kumar
a2b4c29ee8 New testcases for shuffle() function 2007-10-27 12:27:49 +00:00
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