Commit Graph

568 Commits

Author SHA1 Message Date
Ilia Alshanetsky
f56e5c045c A more performance friendly version of Andrey's patch. 2005-03-12 17:51:19 +00:00
Andrey Hristov
f15c24d44c added an optional third parameter to str_word_count(), which is used as
a list of characters which are considerd "is_alpha()". Thus V14GR4 can
be extracted as one word if the user supplies "14" as charlist.
FR #31560
# Nuno, are you wishing to document this one too? :)
2005-03-12 14:41:20 +00:00
Andrey Hristov
cc39b51d2d add a test file 2005-03-12 12:59:53 +00:00
Marcus Boerger
1d85c3fe80 - Times have changed - php 5 relevant version now 2005-03-11 00:22:28 +00:00
Marcus Boerger
04a08c757a - Allow to work under php 5 2005-03-11 00:11:35 +00:00
Derick Rethans
ff1687731d - Fixed bug #32021: Crash caused by range('', 'z') 2005-02-18 13:37:23 +00:00
Ilia Alshanetsky
cd0435b15a Fixed test. 2005-02-13 19:23:53 +00:00
foobar
71b9c41a6b fix test 2005-02-04 23:23:34 +00:00
Ilia Alshanetsky
42155f6028 Fixed bug #31705 (parse_url() does not recognize http://foo.com#bar) 2005-01-27 16:37:34 +00:00
foobar
197711bb7d Add test for bug #31402 2005-01-18 11:36:44 +00:00
Dmitry Stogov
ea6ea21939 Fixed bug #31190 (exceptions in call_user_func_array()) 2005-01-18 10:38:04 +00:00
Moriyoshi Koizumi
ee18958f98 - Fix htmlentities() / html_decode_entity() UTF-8 related bugs
initially reported by Kamesh Jayachandran
2005-01-11 20:44:04 +00:00
foobar
32d86482cc update test to include negative floats as strings too 2005-01-10 16:00:08 +00:00
Marcus Boerger
5516915115 - Add new test 2005-01-08 13:47:05 +00:00
Marcus Boerger
344d2210c2 - Unify 2005-01-08 13:46:18 +00:00
Moriyoshi Koizumi
88ce94a3c2 - Add testcases for bug #29493 and #31213. 2005-01-02 06:51:03 +00:00
Magnus M��tt�
774a978ea9 Fix test so it doesn't hang make test on HP-UX. 2004-12-21 04:34:22 +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
foobar
ce742b08b0 - Fix typo (avaliable -> available). (bug #28725) 2004-12-16 12:34:32 +00:00
Ilia Alshanetsky
cc17322c14 MFB: test fix. 2004-12-14 17:43:53 +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
Derick Rethans
b6f9b5c693 - Added testcase for bug #30695 2004-11-29 10:15:03 +00:00
Dmitry Stogov
5ece0ecdfb Test was fixed. 2004-11-23 17:21:33 +00:00
Derick Rethans
a6ded1178e - Added test for bug #28599 2004-11-23 09:40:07 +00:00
Marcus Boerger
bb77132391 - Add new test 2004-10-04 17:53:55 +00:00
Ilia Alshanetsky
52ee529ef4 Make test more generic.
# Thanks Marcus.
2004-09-27 17:52:25 +00:00
Marcus Boerger
32e478b9fc - Add fputcsv() (David Sklar) 2004-09-26 21:55:22 +00:00
Ilia Alshanetsky
d6501f756a fixed test output. 2004-09-26 19:12:06 +00:00
Marcus Boerger
3cdd2bcb01 - Add more tests 2004-09-26 18:28:07 +00:00
foobar
36a76f403a Test for bug #30069 2004-09-15 13:54:16 +00:00
Marcus Boerger
91af7f394f - Add some checks when unserializing data to prevent buffer overflows 2004-09-05 16:29:05 +00:00
Marcus Boerger
94c4feef12 Fix test 2004-09-02 18:24:58 +00:00
Andi Gutmans
d1b29ad4c2 - There's no reason why gettimeofday() shouldn''t return the same time in
successive calls; this test fails spuriously on Linux/x86_64 (which has
a particularly fast gettimeofday() implementation).
- Joe Orton <jorton@redhat>
2004-07-23 21:53:16 +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
Moriyoshi Koizumi
5ff410efdf - Fix test name 2004-07-19 18:49:20 +00:00
Moriyoshi Koizumi
fae637021d - Oops, actual PR # is 29119, not 29199... 2004-07-19 17:51:41 +00:00
Moriyoshi Koizumi
46bc2c5ae2 - Fix bug #29199 (html_entity_decode() misbehaves with UTF-8) 2004-07-19 17:46:30 +00:00
Ilia Alshanetsky
8840191d91 Fixed bug #28633 (sprintf incorrectly adding padding to floats). 2004-07-18 17:27:49 +00:00
Andrey Hristov
96f5c697dd Add support for negative values of limit of explode(). If limit is negative
then all components are returned except the last abs(limit) ones.
2004-07-18 11:34:28 +00:00
Ilia Alshanetsky
a75608c1de Fixed Bug #29075 (strnatcmp() incorrectly handles whitespace).
# Original Patch by: curt@php.net
2004-07-15 01:26:03 +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
bc69bdb01a fixing the name of the test 2004-07-11 18:19:43 +00:00
Andrey Hristov
7af08c0c34 fixing bug 29038:
EXTR_PREFIX_SAME is prevented from creating a new variable when the key
is a empty string. EXTR_PREFIX_ALL is also prevented from doing that,
but works for numbers.
2004-07-11 18:18:05 +00:00
Moriyoshi Koizumi
8989a96789 - Add test for bug #28325. 2004-07-05 07:53:41 +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
Marcus Boerger
d94136fc30 - Remove unused blocks 2004-05-19 08:45:46 +00:00
Ilia Alshanetsky
0a38683b14 Correct output. 2004-05-17 20:58:57 +00:00
Marcus Boerger
ed5ce047db - Add new test 2004-05-16 14:48:45 +00:00
Ilia Alshanetsky
d24465ba8a Fixed bug #28386 (wordwrap() wraps lines 1 character too soon). 2004-05-13 17:44:23 +00:00
Ilia Alshanetsky
91e9545f4f Fixed bug #28228 (number_format() does not allow empty decimal separator). 2004-04-30 13:26:01 +00:00
Derick Rethans
b91a947d5e - Added test and not the diff ;-) 2004-04-08 16:17:35 +00:00
foobar
5d3900a2e9 remove crap 2004-04-08 15:58:35 +00:00
Derick Rethans
9d4f01a8af - Test case for bug #20382 2004-04-08 14:18:23 +00:00
Derick Rethans
f1141d79c6 - Fixed comment and double 0 2004-04-04 12:45:02 +00:00
Derick Rethans
794846e5c5 - One more test for a date/time related bug. 2004-04-04 12:42:13 +00:00
Ilia Alshanetsky
c85843aec1 MFB: Revert patch for bug #27782. 2004-04-01 22:07:42 +00:00
Derick Rethans
b2ed70e4e0 - MFB: Fixed bug #27780 (strtotime(+1 xxx) returns a wrong date/time) 2004-04-01 21:40:56 +00:00
Derick Rethans
88c17817a9 - Fixed bug #27822 (is_resource() returns TRUE for closed resources) 2004-04-01 08:54:44 +00:00
Sara Golemon
72616e6eae BugFix#27619
Filters not applied to pre-buffered stream data.
(esp. http:// streams)
2004-03-31 23:48:59 +00:00
Ard Biesheuvel
81cfb1b312 Make time tests more robust against differences in implementation
# FreeBSD mktime() returns -1 if is_dst==1 and no DST timezone is set
2004-03-31 01:00:55 +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
04d178f79c Prevent test from failing on least significant digit 2004-03-30 12:36:44 +00:00
Ilia Alshanetsky
f7fd3a7dcc Removed extra spaces that cause the test to fail. 2004-03-29 21:57:29 +00:00
Rasmus Lerdorf
1ece5eb5ad MFB test case for bug #27719 and improve comments in this tricky DST code 2004-03-28 15:03:56 +00:00
Marcus Boerger
bc0373b880 Portable solution for bug #27646 that works correct on Windows, too 2004-03-27 00:50:41 +00:00
Sara Golemon
c52cc1c333 BugFix 27675 and add regression test. 2004-03-26 19:23:42 +00:00
Marcus Boerger
3450ed948f -Make NAN and INF more portable (atof() doesn't work on MSVC.6 for example)
-Change test to use constants without prior conversion
2004-03-25 22:36:36 +00:00
Marcus Boerger
fdcff80c16 - Allow negative infinity
- Register missing constants, they work anyway but cause an E_NOTICE
# generation by atof() should be portable enough (afaik)
2004-03-23 22:30:25 +00:00
Dmitry Stogov
deb84befae BUG #27469 was fixed (serialize() objects of incomplete class) 2004-03-18 16:54:36 +00:00
Sara Golemon
4341ee6061 Userspace Directory Stream Test 2004-03-17 20:48:12 +00:00
foobar
3bd12064ef test for bug #27457 2004-03-09 14:19:50 +00:00
Moriyoshi Koizumi
df8ee549f5 - Add support for more ISO8601 style formats.
. Timezone specifier (ex. 20040301T00:00:00+1900)
 . Week specifier "W"  (ex. 1997W021)
- Modified test case to test new features.
2004-03-01 10:42:28 +00:00
Derick Rethans
f954677e54 - Fix tests after change to highlight_string() 2004-02-25 22:55:47 +00:00
Wez Furlong
0619eee6d0 test case for statcache corruption of BG 2004-02-23 21:07:10 +00:00
Derick Rethans
769dc0be75 - Added testcase for bug #27276 2004-02-23 19:45:16 +00:00
Ard Biesheuvel
154893115a 64-bit fix 2004-02-23 02:09:48 +00:00
Ilia Alshanetsky
95cbb0046c Fixed bug #27295 (memory leak inside sscanf()). 2004-02-18 19:48:13 +00:00
foobar
7a7927c146 shorten the description a bit 2004-02-16 17:44:27 +00:00
foobar
7fd4bdbec4 nuke copypaste rubbish 2004-02-16 16:50:53 +00:00
foobar
173794732b test for bug #27278 2004-02-16 16:50:11 +00:00
foobar
6e06620089 - fix test 2004-02-16 06:39:13 +00:00
foobar
8cd863f738 test case for bug #26938 2004-01-21 22:48:28 +00:00
Sara Golemon
1fb629de8a Typo 2004-01-21 04:08:10 +00:00
foobar
6f56bc3b8d extend a bit 2004-01-21 03:58:30 +00:00
foobar
d7a54202d8 test case for bug #26973 2004-01-21 03:49:15 +00:00
Ilia Alshanetsky
608db4728b Added fgetcsv() tests. 2004-01-19 03:55:29 +00:00
Ilia Alshanetsky
43becc02f1 Fixed bug #26878 (problem with multiple references to the same variable
with different types).
2004-01-13 23:11:31 +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
Ilia Alshanetsky
d4c19ed2d2 Fixed bug #26819 (http_build_query() crashes on NULL output).
Fixed bug #26817 (http_build_query() does not handle private & protected
object properties correctly).
2004-01-06 20:07:07 +00:00
Moriyoshi Koizumi
27f47eb173 "seq" isn't available for all platforms. 2004-01-04 03:06:11 +00:00
Marcus Boerger
3ab7b87143 Add new test 2004-01-02 03:24:38 +00:00
Marcus Boerger
c6755e8394 No Notices here 2003-12-29 22:24:01 +00:00
Sara Golemon
4af0ba44d9 Test additional wrapper methods [unlink, rename, mkdir, rmdir, url_stat] 2003-12-28 01:06:38 +00:00
Marcus Boerger
a84f8156ff Bugfix #25038 (call_user_func issues warning if function throws exception) 2003-12-27 21:10:34 +00:00
Marcus Boerger
8a072165f5 Typos found by Petras Kudaras. 2003-12-22 23:45:53 +00:00
Marcus Boerger
68251516ad Fix test 2003-12-22 23:23:06 +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
Derick Rethans
e7fd0bdf03 - Added 'c' modifier to date() which returns the date in ISO 8601 format. 2003-12-16 22:52:48 +00:00
Derick Rethans
112f424f70 - Fixed bug #26615 (patch by runekl at opoint dot com) 2003-12-13 18:55:53 +00:00
Wez Furlong
98f1021dd8 Make these tests work under win32 2003-12-05 13:42:04 +00:00
Wez Furlong
ab0029cabf Be smarter about which systems should register unix transports.
Fix skip conditions in these network tests
2003-12-05 13:41:02 +00:00
Marcus Boerger
c3fddcab62 Fix tests for E_STRICT and check for E_STRICT in run-tests.php. 2003-11-30 13:57:20 +00:00
Wez Furlong
37f135ceef Add stream_socket_sendto and stream_socket_recvfrom which work very much
like sendto() and recvfrom() syscalls.
2003-11-29 21:46:50 +00:00
Ilia Alshanetsky
99dec6927c Fixed bug #26463 (Incorrect handling of semicolons after heredoc) 2003-11-29 19:05:14 +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
Hartmut Holzgraefe
8053a324aa typo fix 2003-11-19 17:38:42 +00:00
Hartmut Holzgraefe
47ee4d5e88 regression test for bug # 26320
"strtotime() does not understand ISO6801 datetime format as used in XMLSchema"
2003-11-19 16:37:50 +00:00
Hartmut Holzgraefe
5339f9134f Testcase done right ... 2003-11-19 16:19:28 +00:00
Hartmut Holzgraefe
8cc9c96cef regression test for http://bugs.php.net/bug.php?id=26317
"military timezones and strtotime()"
2003-11-19 16:01:25 +00:00
Ilia Alshanetsky
2a58fb80e7 Fixed Bug #25694 (round() and number_format() give inconsistent results). 2003-11-18 02:50:41 +00:00
Moriyoshi Koizumi
6b7bd4be8f ctime (#10) may differ on several filesystems.
# I confirmed it on Darwin
2003-11-14 08:59:30 +00:00
Ilia Alshanetsky
770a111a43 Fixed bug #26198 (strtotime() handling of M/F Y date format). 2003-11-12 02:55:03 +00:00
Moriyoshi Koizumi
28369f6e86 Add test case for bug #26003 2003-10-29 19:45:38 +00:00
Ilia Alshanetsky
4d349926ff Fixed some test names.
Removed extraneous \r from a number of tests.
2003-10-24 03:31:57 +00:00
Moriyoshi Koizumi
5dac05638f Fix typo 2003-10-20 15:45:01 +00:00
Ilia Alshanetsky
a9b20a6abf Fixed bug #25800 (parse_url() could not parse urls with empty port). 2003-10-13 04:27:23 +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
Moriyoshi Koizumi
647408978e Fixed bug #25707 (html_entity_decode over-decodes &amp;lt;) 2003-10-02 06:57:21 +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
Sara Golemon
2acca5d015 Test for Bug 25671 2003-09-27 18:48:48 +00:00
foobar
3462761d2b typo 2003-09-26 09:56:24 +00:00
foobar
ef1c2d59a4 Test case for bug #25665 2003-09-26 09:55:56 +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
Melvyn Sopacua
50947cb155 MFB: Fix US/Eastern vs. America/New_York style tzset implementations. 2003-09-09 21:56:33 +00:00
foobar
af06d049cf test for bug #25378 2003-09-03 16:40:52 +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
Derick Rethans
77729f89dd - Fixed bug #17988: strtotime fails to parse timestamp from postgresql
#- This is actually a feature request
2003-08-16 20:55:28 +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
Ilia Alshanetsky
3652ab6032 Fixed bugs in various tests. 2003-08-12 00:44:05 +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
4320c6994f Fixed bug #21957 (serialize() mangles objects with __sleep). 2003-08-11 03:22:24 +00:00
Sara Golemon
530f502198 Collection of tests for stream_socket_(client|server)(). TCP/UDP (AF_INET & AF_INET6) and UNIX/UDG 2003-08-11 01:30:55 +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
Moriyoshi Koizumi
3bf0b26218 Tru64 requires TZ values be POSIX styled.
# See http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V50_HTML/MAN/MAN3/0247____.HTM for detail.
2003-08-07 17:46:18 +00:00
Moriyoshi Koizumi
0ff21d0370 putenv() should be put here as well. 2003-08-05 12:29:26 +00:00
Ilia Alshanetsky
f9cf39bd30 Fixed bug #13142 (strtotime not handling "M d H:i:s Y" format) 2003-07-28 04:01:32 +00:00
foobar
d8e5bd97c1 fix the test 2003-07-24 10:37:57 +00:00