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
Andrey Hristov
5e5d2640fb
add array_:
...
intersect_key()
intersect_ukey()
diff_key()
diff_ukey()
The first two by a patch of Cristiano Duarte. The second two were
implemented in almost the same way except one small difference.
2004-07-21 21:17:56 +00:00
Andrey Hristov
0eef82a733
fixing bug #28974 : overflow in array_slice()
...
The same kind of overflow appeared in array_splice(), substr() and
substr_replace()
2004-07-11 21:15:04 +00:00
Andrey Hristov
268d3d7ba3
fixing bug #28739
...
array_*diff() and array_*intersect() not clearing the fci cache before work.
FCI call cache was introduced in HEAD. All functions that perform sorting
of arrays clear the fci cache before work. array_*diff() and\ array_*intersect()
were somehow missed to be updated.
2004-07-11 19:20:05 +00:00
Andrey Hristov
44de5a0e8e
fixing the tests so to work with the new var_dump() (dumping private and
...
protected member variables)
2004-05-20 21:13:14 +00:00
Marcus Boerger
29cfd6d24f
- Remove unused blocks
2004-05-19 08:56:50 +00:00
Ilia Alshanetsky
c85843aec1
MFB: Revert patch for bug #27782 .
2004-04-01 22:07:42 +00:00
Ilia Alshanetsky
ec4655f864
Fixed bug #27782 (Wrong behaviour of next(), prev() and each()).
2004-03-30 19:08:43 +00:00
Ard Biesheuvel
154893115a
64-bit fix
2004-02-23 02:09:48 +00:00
Andrey Hristov
4b2a32b701
fixing test
2004-01-11 11:55:33 +00:00
Andrey Hristov
9ca6b7448d
fixing tests after last Derick's commit that changed the behaviour of
...
var_export() :)
2004-01-10 23:38:45 +00:00
Marcus Boerger
c6755e8394
No Notices here
2003-12-29 22:24:01 +00:00
Dmitry Stogov
f06cbb764c
Using INI section.
2003-12-19 15:09:40 +00:00
Dmitry Stogov
7c39ab9374
Memory limit overflow was fixed
2003-12-19 11:29:27 +00:00
Andrey Hristov
df4e15b153
test case for array_sum
2003-12-18 22:12:29 +00:00
Ilia Alshanetsky
91052eb93b
Fixed bug #26458 (var_dump(), var_export(), debug_zval_dump() not binary
...
safe for array keys).
2003-11-29 04:43:06 +00:00
Andrey Hristov
638b940307
New array functions for doing intersection of arrays that are complementary
...
to array_*diff* family of functions. Namely array_uintersect(), array_uintersect_assoc(),
array_intersect_uassoc() and array_uintersect_uassoc(). Test case is also included.
#docs and news entry later.
2003-10-09 08:10:39 +00:00
Ilia Alshanetsky
6f8b8ade45
Fixed bug #25758 (var_export does not escape ' & \ inside array keys)
2003-10-08 01:16:44 +00:00
Moriyoshi Koizumi
4859431fc1
Fixed bug #24766 (strange result array from unpack())
2003-10-03 22:41:43 +00:00
foobar
f3f9f8db7f
- Added test for bug #24766
...
# This bug is caused by the HANDLE_NUMERIC() change in ZE2 vs ZE1
2003-10-03 05:47:07 +00:00
Moriyoshi Koizumi
76ae064883
Add a test case for bug #25708
2003-10-02 22:50:28 +00:00
Andrey Hristov
26aba89a43
Move the test to new file.
2003-09-30 15:22:33 +00:00
Andrey Hristov
a11645dda8
fix
2003-09-30 15:06:05 +00:00
Andrey Hristov
a7ac568486
New test cases for the new 4 functions :
...
- array_udiff()
- array_udiff_assoc()
- array_diff_uassoc()
- array_udiff_uassoc()
2003-09-23 17:40:34 +00:00
Ilia Alshanetsky
c23609efa7
Fixed paths in various tests. In certain conditions usage of partial file
...
paths results in test failures.
2003-08-18 22:57:49 +00:00
foobar
e7820af9f8
fix test
2003-08-13 10:40:28 +00:00
foobar
604b06e4ca
Fix the test. (this was mixed test with bug #24159 )
2003-08-13 09:48:20 +00:00
foobar
24b26ec546
Fix the test results (negative indices are not strings anymore)
2003-08-11 23:55:46 +00:00
Marcus Boerger
f77f977d0e
Bugfix 21918
2003-08-11 20:14:25 +00:00
Ilia Alshanetsky
e5b7d5ccb4
Fixed bug #24897 (inconsistent behavior of shuffle() & array_multisort())
2003-08-09 20:49:00 +00:00
Ilia Alshanetsky
ac41c5db23
Added/improved tests for bugs 24142, 24063, 24951, 24980
2003-08-09 16:44:33 +00:00
foobar
d8e5bd97c1
fix the test
2003-07-24 10:37:57 +00:00
foobar
760fe8e923
test for bug #14580 (key() not binary safe)
2003-07-24 10:13:17 +00:00
Ilia Alshanetsky
abe8647eb4
Added a test case for bug #24220
2003-06-17 13:19:20 +00:00
Ilia Alshanetsky
6057160dbf
Fixed bug #24198 (Invalid recursion detection in array_merge_recurcive())
2003-06-16 17:35:16 +00:00
foobar
380bf699ae
Added regression test for bug #23788
2003-05-26 03:55:08 +00:00
Moriyoshi Koizumi
065a192411
Added a test case for bug #23581
2003-05-11 06:33:35 +00:00
Moriyoshi Koizumi
b666d8c679
Added test case for bug #22463
2003-05-11 02:37:17 +00:00
foobar
073a80fbcc
fix the test
2003-02-06 15:22:41 +00:00
foobar
102f8cf4c1
Added testcase for bug #22088
2003-02-06 15:04:53 +00:00
foobar
7147949a4e
Correct description of the problem
2003-02-03 16:52:04 +00:00
foobar
bb97dfaccb
Added test for bug #21998
2003-02-03 06:43:08 +00:00
Derick Rethans
b996b32031
- Add test for bug #21182
2002-12-25 20:08:36 +00:00
Ilia Alshanetsky
3a4bf3f904
When low & high are the same return an array containing the low value.
...
Added support for float values and handling of numeric values being passed
as strings.
Added a test case for range().
2002-12-20 17:16:31 +00:00
Ilia Alshanetsky
3bc8512cf0
Added test case for bug #20865 .
2002-12-06 17:46:26 +00:00
Moriyoshi Koizumi
cf0a0f0967
Added a test for bug #12776
2002-12-04 17:01:07 +00:00
Marcus Boerger
015c117e37
-Do not rely on a side effect of 32bit platforms (patch by Michael Mauch)
...
-remove unused sections
2002-11-16 17:28:04 +00:00
Marcus Boerger
31e1cd13e2
removed unused sections
2002-11-16 17:26:52 +00:00
Moriyoshi Koizumi
ac209557dd
Added a test case for bug #20381
2002-11-15 02:11:23 +00:00
Ilia Alshanetsky
7db2ebd8ea
This makes the output of the tests consistent on 32bit and 64 bit platforms.
...
The old test relied on the 32 bit behaviour, which caused them to always fail
on 64 bit platforms.
2002-11-07 17:49:11 +00:00
Derick Rethans
e06550f853
- Fix problem with var_export when objects with numeric indexes were
...
exported. We now skip those, as there is no way to export valid code for
it.
2002-10-11 13:49:20 +00:00
Derick Rethans
bd48e0cfe9
- Add new tests for: array_change_key_case, array_chunk and
...
array_count_values.
2002-10-06 18:42:03 +00:00
Andrey Hristov
9980cf5f53
Test case for array_intersect() and array_intersect_assoc()
2002-09-21 14:50:55 +00:00
Andrey Hristov
2b710f7e5c
Regression test for array_diff() and array_diff_assoc(). The latter is newly
...
introduced.
2002-09-11 18:16:11 +00:00
Marcus Boerger
a70640480a
Patch from Melvyn Sopacua <msopacua@idg.nl> finally fixes it (bug 19006).
2002-08-21 10:42:55 +00:00
Marcus Boerger
d3d12daec4
add ini setting precision - this does not fix the real problem here
2002-08-21 03:13:33 +00:00
Marcus Boerger
9607a482b2
fix array tests
...
someone must have changed precision in php.ini-dist from 14 to 12
2002-08-21 01:22:02 +00:00
foobar
362fc4ee76
Add test for the index resetting.
2002-08-01 16:39:14 +00:00
foobar
ababdff402
Added tests for array_shift/array_pop.
2002-08-01 12:33:02 +00:00
Sander Roobol
9b6a8d2639
Fixed the array-tests. Broke the test up into various smaller tests.
...
Reduced the test data because it was unmanageable.
# I hope everything is ok :)
2002-03-26 18:17:38 +00:00
Sander Roobol
a15c9a31eb
Added tests for pow()'ing with broken exponents and some additional test
...
for count()'ing arrays.
2002-03-21 14:18:30 +00:00
Derick Rethans
39225a22b8
- Fix tests to work with CLI
...
#- Not totally done, but this makes it a lot better
2002-03-05 09:00:56 +00:00
Derick Rethans
aee570302f
- Fix bug introduced in earlier patch
2002-01-09 16:03:36 +00:00
Zak Greant
6823fb1fe7
Surprising how tests can fail when they don't have any supporting data :) Thanks for the catch Jan and Jim
2002-01-05 01:58:44 +00:00
Derick Rethans
ae07e93028
- Added test for recursive counting
2001-12-29 21:05:03 +00:00
Zak Greant
2c9f5d8a91
Modified array_walk, arsort, asort, krsort, ksort, rsort, shuffle, sort,
...
uasort, uksort and usort.
Corrected prototype comments for all.
Converted to use zend_parse_parameters, except for the u.?sort functions.
Changed return values for failure from implicit NULL to explicit FALSE in
asort(), krsort(), and ksort().
Changed pval to zval in the u.?sort functions.
Added test to help ensure that fixes to code do not change function
behavior. Tests are quite large (~237k) but compress down to ~16k.
Please let me know if this is a problem!
2001-12-22 11:49:56 +00:00
Jeroen van Wolffelaar
5541451085
Add test for array_search and in_array
...
(should be expanded though)
2001-10-05 22:01:04 +00:00