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 <)
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
foobar
760fe8e923
test for bug #14580 (key() not binary safe)
2003-07-24 10:13:17 +00:00
Hartmut Holzgraefe
b0a4e1a2d2
whitespace
2003-07-15 17:28:41 +00:00
Hartmut Holzgraefe
2f5a3b4c63
#1 $_ENV is not always set, use getenv() instead
...
#2 bail out after 1000 loop iterations to avoid hanging tests
2003-07-15 16:55:44 +00:00
foobar
94a19d1bc6
Make this test work regardless of safe_mode setting (bug #24654 )
2003-07-15 07:06:42 +00:00
Moriyoshi Koizumi
d33ffb78aa
Added regression test for proc_open()
2003-07-13 08:03:46 +00:00
Hartmut Holzgraefe
de6a6ed6d7
skip test if glob() is not available at all
2003-07-04 15:07:11 +00:00
Hartmut Holzgraefe
3c34e4edaf
regression test for #24482 GLOB_ONLYDIR is not working (on BSD)
2003-07-04 14:38:07 +00:00
Moriyoshi Koizumi
181508a837
s/cvs/csv/
2003-07-02 17:07:56 +00:00
Moriyoshi Koizumi
ed033faaec
s/cvs/csv/ :)
2003-07-02 15:43:44 +00:00
Ilia Alshanetsky
4634554976
Fix up test
2003-07-01 03:11:09 +00:00
Sterling Hughes
f6d84a10ea
set precision properly.. test passes here
2003-06-30 20:03:17 +00:00
Sterling Hughes
223584a138
this is the correct result
2003-06-30 19:50:18 +00:00
Rasmus Lerdorf
832ffd1970
Fix 3 tests that didn't adequately specify the .ini settings they rely on
2003-06-30 18:22:53 +00:00
Ilia Alshanetsky
8cb5c9c6ba
Fixed bug #24063 (*printf() did not handle scientific notation correctly)
2003-06-30 01:03:21 +00:00
Ilia Alshanetsky
a6fd611c5e
Added array handling to file_put_contents()
...
More verbose error reporting mechanism.
Test case for file_put_contents().
2003-06-28 20:06:13 +00:00
Ilia Alshanetsky
9e53c34ad3
Fixed test failure on systems with short_tags (<?) off.
2003-06-28 17:36:46 +00:00
Sebastian Bergmann
67400949f2
Remove aggregation tests as well.
2003-06-28 05:51:37 +00:00
Sterling Hughes
1ed8e46273
according to the notes in the bugs database, this is the correct result.
...
this result is also the same one given in 4.3.2 and 5.0
2003-06-26 03:21:45 +00:00
Ilia Alshanetsky
c8ecf7ec3e
Fixed bug #24312 (base64_decode() does not skip 0xF0-0xFF characters)
...
Patch by: gereon.steffens[at]onvista.de
2003-06-24 15:23:17 +00:00
Ilia Alshanetsky
6b5b6079da
Fix for bug #24313 (port from dead PHP_5 branch)
2003-06-24 13:56:25 +00:00
Stanislav Malyshev
02bebe8186
add test for #24281
2003-06-23 14:18:33 +00:00
Ilia Alshanetsky
abe8647eb4
Added a test case for bug #24220
2003-06-17 13:19:20 +00:00
foobar
9aa14246d9
Fixed the expected result
2003-06-16 19:59:27 +00:00
Moriyoshi Koizumi
a3873c986b
Added test case for bug #24208
2003-06-16 19:10:12 +00:00
Derick Rethans
cd5fd7eed7
- Added test for bug #24142
2003-06-16 17:50:07 +00:00
Ilia Alshanetsky
6057160dbf
Fixed bug #24198 (Invalid recursion detection in array_merge_recurcive())
2003-06-16 17:35:16 +00:00
Marcus Boerger
0137868171
No more namespaces
2003-06-14 22:10:15 +00:00
Ilia Alshanetsky
aec7815e9c
Fixed bug #24098 (Crash in pathinfo() due to double var initialization).
...
# This is a php5 specific bug, no MFB needed
2003-06-09 18:12:36 +00:00
Moriyoshi Koizumi
3c0071a211
Added test case for bug #23894
2003-05-30 13:48:14 +00:00
Moriyoshi Koizumi
3cd1ea3154
Changed the test so it would not fail on some old platforms.
2003-05-26 22:16:14 +00:00
foobar
380bf699ae
Added regression test for bug #23788
2003-05-26 03:55:08 +00:00
Marcus Boerger
e035046ac2
Add new test
2003-05-24 17:10:34 +00:00
Marcus Boerger
7ff718f455
Make this a warning
2003-05-23 20:51:49 +00:00
foobar
a747e1b768
added another test case (due to the problems we saw with 4.3.2RC4)
2003-05-22 23:59:37 +00:00
Marcus Boerger
e504166277
This depends on libc and CPU used
2003-05-21 07:23:45 +00:00
Marcus Boerger
4a11372805
Fix Test (2nd time)
2003-05-20 00:09:47 +00:00
Marcus Boerger
0c77fef23a
Fix Test
2003-05-19 22:16:58 +00:00
Derick Rethans
92f0da58e6
- Rename stream_register_filter() to stream_filter_register(),
...
stream_register_wrapper() to stream_wrapper_register() and added an alias for
the latter change.
2003-05-19 15:35:06 +00:00
Ilia Alshanetsky
8e3772a827
Added skip condition.
2003-05-19 04:57:01 +00:00
foobar
422309353d
CS
2003-05-18 14:55:18 +00:00
Marcus Boerger
66a3e8deb7
Fix test (for now - need EXPECTF/EXPECTREGEX)
2003-05-18 12:10:03 +00:00
Moriyoshi Koizumi
80c75c4d62
MFB(r-1.1.2.7): fix test
2003-05-17 20:06:00 +00:00
Moriyoshi Koizumi
27b8c453b9
copy'n'paste failure
2003-05-16 06:24:57 +00:00
Moriyoshi Koizumi
3d2b9af9eb
Added test case for bug #23650
2003-05-16 06:20:23 +00:00
Moriyoshi Koizumi
f78ec11339
Fixed test so it won't fail in case the output handler is enabled
2003-05-15 19:20:31 +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
Moriyoshi Koizumi
598dba147d
Fixed test case so it reflects the recent change on var_dump()
2003-05-08 23:23:02 +00:00
Ilia Alshanetsky
b20df54af7
Make serialize precision a configurable option.
2003-05-08 01:23:21 +00:00
Ilia Alshanetsky
a7591863fd
Fixed tests to reflect full float values.
2003-05-05 19:57:32 +00:00
Hartmut Holzgraefe
e6490c4a41
basename() now binary safe, testcases added
2003-05-05 13:46:14 +00:00
Ilia Alshanetsky
75c01dd66b
Fixed bug #23298 (serialize cuts off floats & doubles)
2003-05-04 18:41:02 +00:00
Moriyoshi Koizumi
b44ae54bc6
Real fix and a test case for bug #22008
2003-05-04 12:44:36 +00:00
Andrey Hristov
a894bf5c87
Extending substr_replace().
...
Every parameter can be mixed (string/array) also the return type.
#see the test file if you need more info.
2003-05-02 10:02:40 +00:00
Moriyoshi Koizumi
193fe6863a
Really fix the test.
...
# sorry for the mess..
2003-04-30 16:30:44 +00:00
Moriyoshi Koizumi
180806f9e6
Fixed typo
2003-04-29 13:05:58 +00:00
Moriyoshi Koizumi
cc9b7895a0
Fixed bogus skip condition
2003-04-29 13:04:19 +00:00
Ilia Alshanetsky
6bc4ce43d0
Do not hardcode php path.
2003-04-19 18:10:54 +00:00
Ilia Alshanetsky
e4c38aec5a
Do not make the test rely on the availability of the cat command.
2003-04-19 17:45:46 +00:00
Sara Golemon
76965beb04
Add tests for strrpos/stripos, and minor fix to maintain BC for condition with empty needles/haystacks
2003-04-12 20:04:06 +00:00
Sara Golemon
c249c67178
New test for userfilters rewrite
2003-04-02 00:41:09 +00:00
Moriyoshi Koizumi
6301bd9b95
Fixed bogus test
2003-04-01 19:47:33 +00:00
Moriyoshi Koizumi
b302824171
Added a test case for bug #22538
2003-04-01 19:10:04 +00:00
Moshe Doron
3c982dea22
oops
2003-04-01 12:54:35 +00:00
Moshe Doron
d8b5687925
revert due the last string.c revert
2003-04-01 12:53:44 +00:00
Moriyoshi Koizumi
93386a8b09
oops
2003-03-31 23:49:53 +00:00
Moriyoshi Koizumi
e8f13586a7
Fixed test; in ZE2, all the properties used in any methods are populated
...
at compile time.
2003-03-31 22:54:18 +00:00
Moshe Doron
64bd1cdbd6
# make derik happy
2003-03-31 19:01:43 +00:00
David Hill
86569cb154
Backing out part of TZ change
2003-03-27 14:23:48 +00:00
David Hill
1fa7504fae
Changing TZ to match Unix98 standard to make Tru64 happy
2003-03-26 16:42:03 +00:00
Moriyoshi Koizumi
03a5129429
oops...
2003-03-24 19:24:35 +00:00
Moriyoshi Koizumi
68b03bde3a
Added test cases for new functionality
2003-03-24 19:21:20 +00:00
Jay Smith
39ec83bb5f
Solaris knows nothing of "Europe/Amsterdam". Use "US/Eastern" instead.
2003-03-13 18:51:39 +00:00
Moriyoshi Koizumi
a41e0c1382
Modified the test to reflect the recent change on var_dump()
2003-03-10 20:46:39 +00:00
Ilia Alshanetsky
b162e18a29
Skip test if running under safe-mode.
2003-03-04 14:37:38 +00:00
Ilia Alshanetsky
503e49feae
Fixed test.
2003-02-25 16:27:51 +00:00
Ilia Alshanetsky
f29964e2ba
Fixed bug #22414 and added a test case for it.
2003-02-25 16:21:00 +00:00
Ilia Alshanetsky
a3cb589b71
Fixed bug #22382 (fgetcsv did not handle \" correctly).
2003-02-24 03:13:25 +00:00
Derick Rethans
2bff9cae27
- Fixed testcase... you can never trust on RFCs it seems
2003-02-20 16:15:41 +00:00
Derick Rethans
d95c41eddb
- Added new parameter to sha1() and md5() which return the digest as
...
binary data. (Original patch by Michael Bretterklieber <mbretter@jawa.at>)
- Added test cases for sha1() and md5() based on the testvectors in RFC 1321
and RFC 3174.
@- Added new parameter to sha1() and md5() which return the digest as
@ binary data. (Michael Bretterklieber <mbretter@jawa.at>, Derick)
2003-02-18 20:31:19 +00:00
Wez Furlong
1e34a6bffc
Add basic test of read filters and read filter chain.
2003-02-18 01:24:41 +00:00
foobar
d3e006eafd
- These results were obviously got with TZ=GMT
...
# also prefixed the test results with the tested option
# so it's easier to see which one fails..
2003-02-17 06:23:22 +00:00
foobar
6b7a822cec
Assuming the results were created in system with Asia/Jerusalem as TZ
2003-02-17 05:51:03 +00:00
foobar
1c89652590
override precision ini setting
2003-02-17 05:02:05 +00:00
Moshe Doron
ea8d11cc87
@ new idate() function.
...
@ new date_sunrise() function.
@ new date_sunset() function.
#since i have no premission updating the win32 project file, i'm sending patch on the list.
2003-02-16 22:28:01 +00:00
Wez Furlong
32c1eafe85
Remove bogus test.
...
Append mode always causes written data to go to the end of the file,
regardless of the current seek position.
2003-02-16 15:42:14 +00:00
Moriyoshi Koizumi
b069f35022
Fixed bug #22227
...
Added test case for bug #22227
2003-02-15 15:57:31 +00:00
Moriyoshi Koizumi
b3a8349191
Fixed bug #22224 (implode changes object references in array)
...
Added test case for the bug
2003-02-14 18:42:36 +00:00
Ilia Alshanetsky
2443adb8b5
Added test case for bug #22187 .
2003-02-13 19:07:20 +00:00
foobar
e6841d6c35
Added test for those different crypt() methods. Hopefully I got the results right.
2003-02-13 18:49:57 +00:00
Ilia Alshanetsky
7fffe4338a
Fixed bug #22207 (e notation in *printf would be missing a 0 when there is
...
no exponent).
Added a test case for the bug.
2003-02-13 17:25:31 +00:00
Kai Schroeder
e42339a6b4
shane added is_executable() for windows last night
2003-02-09 13:54:01 +00:00
Kai Schroeder
d1338ff914
reverting to version 1.5; shane added is_executable() for windows last night
2003-02-09 13:52:46 +00:00
Kai Schroeder
390799592d
newlines changed
2003-02-09 13:25:23 +00:00
Kai Schroeder
f93b09b2db
getopt() is currently not available on Windows
2003-02-09 13:23:50 +00:00
Kai Schroeder
11e81f89fd
there are no symlinks on Windows
2003-02-09 13:20:17 +00:00
Kai Schroeder
ea9101135f
is_executable() does not exist on Windows
2003-02-09 13:19:23 +00:00
Kai Schroeder
6fa2536252
die() to skip second message
2003-02-09 12:34:55 +00:00
Kai Schroeder
745bec1c48
Windows doesn't know timezone CET
2003-02-09 12:22:18 +00:00
Kai Schroeder
93d4e6e5ed
skip for Windows (does not support dates prior to midnight, January 1, 1970)
2003-02-09 12:21:47 +00:00
Kai Schroeder
d6567abbf4
Windows does not support dates prior to midnight, January 1, 1970
2003-02-09 12:20:54 +00:00
Kai Schroeder
8e14c4a89f
test for mktime()
2003-02-09 12:19:02 +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
Moriyoshi Koizumi
8dfb2df649
Renamed the test name as per the convension
2003-01-23 19:21:51 +00:00
Moriyoshi Koizumi
6fc22aa5d9
Test name formatting
2003-01-23 19:07:25 +00:00
Moriyoshi Koizumi
a1e6457561
Fixed bug #21744(21741)
...
Added test case for the bug
2003-01-19 11:32:54 +00:00
Moriyoshi Koizumi
310397f2ee
Fixed typo
2003-01-18 19:02:21 +00:00
Moriyoshi Koizumi
2aa7bf8d8b
Added test case for bug #21730
2003-01-18 18:59:27 +00:00
Derick Rethans
a50e9acd8e
- Skip test if the function to test is not available
...
#- Perhaps we need some infrastructure for this...
2003-01-18 13:53:25 +00:00
Ilia Alshanetsky
054826b192
Added missing test result.
2003-01-17 23:57:43 +00:00
Marcus Boerger
973c5fa1ec
fix jp2 detection and add testfile
2003-01-17 18:51:30 +00:00
Marcus Boerger
1dabcd4dad
- JPEG 2000 support
2003-01-16 19:46:12 +00:00
Wez Furlong
a3a2dcd8a9
Relieve scripts of the burden of ensuring that all pipes are closed prior
...
to calling proc_close().
Implement proc_get_status(resource $process) which returns an array of
information about a process created with proc_open().
The information includes:
array(
"command" => string "name of the command",
"pid" => long process identifier,
"running" => bool true if the process is still running
"exitcode" => long exitcode if the process exited
"signaled" => bool true if the process was signaled
"termsig" => long signal number if signaled
"stopped" => bool true if the process is stopped
"stopsig" => long signal number if stopped
);
2003-01-15 18:54:03 +00:00
Wez Furlong
d8fbd1acef
Fix Bug #21523 - number_format could cause a memory allocation for a
...
negative memory size in situations where the sprintf implementation of the
host system generated less decimal places than were requested.
Resolved this issue by making number_format examine the string returned
by spprintf and have it pad to the correct number of decimal places.
Added a test-case based on the bug report; the length of decimal places
required to trigger this bug is sprintf implementation dependent; as the
implementation is now using spprintf (provided by PHP), that number is
78 digits (NDIG - 2).
# I played with the idea of enhancing sprintf to do the equivalent, but
# it was too much effort considering that the precision of floats/doubles
# is not good enough to warrant it.
# This fix could do with some QA from someone else to make sure there are
# no memory bounds problems and then MFH it to PHP_4_3
2003-01-09 15:44:49 +00:00
Ilia Alshanetsky
97dd1e8abf
Fixed bug #21453 (improper handling of non-terminated <).
2003-01-06 22:13:03 +00:00
Wez Furlong
d23d4b366d
Make it slightly more obvious that the return value is relative to the length
...
of the input data.
2003-01-06 14:04:23 +00:00
Ilia Alshanetsky
0ff59a1353
Fixed bug #21338 (crash inside html_entity_decode() when "" is passed).
...
Added test case for the bug.
2003-01-02 19:49:30 +00:00
Wez Furlong
f58628ca4d
Move rot13 filter into a new filters.c source file.
...
Tidy up some other filter related code.
# win32 -> someone please add user_filters.c and filters.c to the .dsp
2003-01-01 11:04:44 +00:00
Wez Furlong
350b0bbeac
Implement user-space filters.
...
See ext/standard/tests/file/userfilters.phpt for an example of their use.
2002-12-31 18:39:36 +00:00
Ilia Alshanetsky
bd19dabefe
Fixed bug #21226 (parse_url handling of urls without a path).
2002-12-30 16:42:49 +00:00
Derick Rethans
b996b32031
- Add test for bug #21182
2002-12-25 20:08:36 +00:00
Wez Furlong
c5091eedf1
Forgot to include this in my previous commit for #21131 fix.
2002-12-22 18:06:27 +00:00
Wez Furlong
efea12fec5
Fix for Bug #21131 : fopen($file, 'a+') would incorrectly assume that
...
the stream position was at offset 0.
This corrects that assumption by querying the stream for it's position
when it detects the 'a' "flag" in the mode parameter to fopen.
Also added a test for plain files and amended the userstreams test to
take this into account.
2002-12-22 18:05: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
Moriyoshi Koizumi
d2fa4670dc
Prevented test failure caused by LF code variety
2002-12-18 23:06:27 +00:00
Moriyoshi Koizumi
92d5faca60
MFB
2002-12-12 21:44:53 +00:00
Moriyoshi Koizumi
d679e5d2aa
Added a test case for bug #20934
2002-12-12 21:42:17 +00:00
Ilia Alshanetsky
75c180f242
Fixed bug #20927 and updated the test case for the bug.
2002-12-12 13:38:19 +00:00
Melvyn Sopacua
4b3b409b48
Add testcase for reported wordwrap bug
2002-12-11 20:22:42 +00:00
Ilia Alshanetsky
c194d9333d
Added getopt() test.
2002-12-11 17:38:28 +00:00
Ilia Alshanetsky
3bc8512cf0
Added test case for bug #20865 .
2002-12-06 17:46:26 +00:00
Ilia Alshanetsky
7364e3b771
Fixed bug #12556 , updated the test for this bug.
2002-12-05 20:01:19 +00:00
Melvyn Sopacua
bd06d48e56
Test data
2002-12-05 19:30:28 +00:00
Melvyn Sopacua
76436b8820
Add a testcase for this bug
2002-12-05 19:29:45 +00:00
Moriyoshi Koizumi
cf0a0f0967
Added a test for bug #12776
2002-12-04 17:01:07 +00:00
Ilia Alshanetsky
e195b10ede
Fixed bug #20664 .
2002-11-27 06:20:19 +00:00
Stefan Esser
63a50e500d
Adding SHA1 tests.
2002-11-19 23:25:57 +00:00
Marcus Boerger
301330ff88
-Added colordepth for png
...
-Added tests for width/heidth for unsigned/signed problems
2002-11-18 16:51:02 +00:00
Marcus Boerger
24726b0c64
Conversion fix by Michael Mauch
2002-11-17 09:27:48 +00:00
Marcus Boerger
2442adabe5
Force float for the float test
2002-11-16 23:45:58 +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
Ilia Alshanetsky
47596de32f
Fixed the test so it works properly on both 32 and 64 bit platforms.
2002-11-16 17:26:26 +00:00
Marcus Boerger
8c598f8bff
Only show the first results
2002-11-15 14:46:52 +00:00
Moriyoshi Koizumi
ac209557dd
Added a test case for bug #20381
2002-11-15 02:11:23 +00:00
Moriyoshi Koizumi
db6efcf7e5
Prevent warnings under safe mode
2002-11-14 18:38:38 +00:00
Wez Furlong
f921ea9f7d
Add a test case for this "bug" # 20134.
...
I'm not sure that this test is actually useful, so I'm not adding
it to the branch.
2002-11-14 14:56:35 +00:00
Wez Furlong
4e85935386
MFB
2002-11-14 14:26:15 +00:00
Ilia Alshanetsky
6b7d77a7a0
Fixed bug #20420 and added partial urls to the test of the function.
2002-11-14 13:40:14 +00:00
Wez Furlong
b01add793c
Add this test to make sure that fopencookie is detected and working
...
correctly (or that the less efficient tmpfile casting is working).
More details in the test itself.
2002-11-14 12:20:36 +00:00
Derick Rethans
bab4957d1c
- MFB: Fixed bug #20484 (stream_get_meta_data crashes on a normal file
...
stream). (Derick, Wez)
2002-11-14 10:56:35 +00:00
Moriyoshi Koizumi
c65cbd2409
Fixed the tests so that they won't be affected by the ini setting of
...
default_charset
2002-11-12 21:37:54 +00:00
Ilia Alshanetsky
ef7bd02688
Added test for swc files (compressed swf files), this must be done in a
...
separate test, since this test has a dependency on the zlib extension.
2002-11-12 17:47:20 +00:00
Jason Greene
84bd2901c4
Add the ability to take the logarithm of any base by adding a base parameter
...
to log()
Added regression tests for the new form
2002-11-11 05:21:35 +00:00
Jason Greene
9e2a312f2e
add test function for log()
...
# It is difficult to test an approximation of an approximation, but I
# believe this test should be close enough to verify the function is working
# correctly.
2002-11-11 03:45:04 +00:00
Marcus Boerger
bf303c2ab7
hide possible warnings
...
#Why should one initialize $php_errormsg to NULL
#It would be easier to have it initialised by the system, wouldn't it?
2002-11-08 17:03:06 +00:00
Ilia Alshanetsky
b6e3ae97c4
Move SWC (compressed swf) check into a separate test because this check
...
requires zlib. This separation allows us to skip the test if zlib is
not available and not fail.
2002-11-08 02:50:28 +00:00
Ilia Alshanetsky
0bdefe4d1e
Added skip conditions in the event the required charset is not avaliabled.
...
Removed old (commented out) module loading code.
2002-11-08 01:12:03 +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
Ilia Alshanetsky
ada01d75e0
Added swf info.
2002-11-07 16:42:32 +00:00
Ilia Alshanetsky
bd41e0503d
Added swf and swc (compressed swf) test cases and added 'bits' portion to
...
the expected bmp test results.
2002-11-07 16:38:57 +00:00
Ilia Alshanetsky
c2337fd851
Added additional tests to parse_url() test suit, corrected the output of 2
...
existing tests, which were affected by a bug fixed in latest update to
parse_url() source code.
2002-11-07 15:46:34 +00:00
Moriyoshi Koizumi
6789057697
Oops, preg_match() returns integer value, not boolean.
2002-11-06 15:14:58 +00:00
Moriyoshi Koizumi
e4460fa5a3
Made skip conditions stricter.
2002-11-06 15:06:35 +00:00
Moriyoshi Koizumi
307024dc68
Fixed typo
2002-11-05 17:46:36 +00:00
Moriyoshi Koizumi
e2112f174a
Added a test for bug #20261
2002-11-05 17:25:59 +00:00
Marcus Boerger
210c6e75f2
Use EXPECT again
2002-11-05 09:52:30 +00:00
Marcus Boerger
81ef4fd958
add tests for functions in image.c (not requiring gd,zlib or exif)
2002-11-03 13:52:45 +00:00
Moriyoshi Koizumi
408e019b25
Disabled output_handler in INI section
2002-11-03 08:37:59 +00:00
Marcus Boerger
20d7a682ab
update test
...
#This test fails for me. I expanded the test output and checked the function.
#The only way to fix this behaviour would be to store the last result in a
#global value and fetch the time again in case the newer value is less the
#the older value.
2002-11-01 12:12:40 +00:00
Moriyoshi Koizumi
f94e45aaf3
Moved the test into the suitable place
2002-10-31 15:28:21 +00:00
Derick Rethans
fb41198f05
- Fix test, in some cases the first significant number in the time
...
was a 3
2002-10-31 06:37:18 +00:00
Moriyoshi Koizumi
939a5870cf
Fixed typo
2002-10-30 11:57:29 +00:00
Moriyoshi Koizumi
a4edf018cb
Added a test case for bug #20169
2002-10-30 11:48:51 +00:00
Melvyn Sopacua
066e8aeef6
Add locale for BSDi
...
# Allthough these characters are used in germany, that doesn't mean, that
# they're not part of the latin-1 character set.
2002-10-29 17:43:08 +00:00
Moriyoshi Koizumi
630a4ff924
Removed dl() stuff
2002-10-29 16:28:12 +00:00
Ilia Alshanetsky
19820c0e83
Added a skip condition for situations where the TZ variable could not be
...
set (safe_mode).
2002-10-29 15:36:47 +00:00
Wez Furlong
a4a517015e
I like my C comments, thanks very much.
2002-10-29 14:36:49 +00:00
Wez Furlong
2d2a375fa6
length of lyrics is not part of the test.
2002-10-29 14:31:54 +00:00
Marcus Boerger
82317945e5
-WS
...
-Use "//" instead of "/* ... */" comments
#this test fails for me. Very weired...
2002-10-29 14:05:55 +00:00
Melvyn Sopacua
50dced2eea
Add FreeBSD locale
2002-10-27 17:07:26 +00:00
Melvyn Sopacua
4d8518e83f
Add FreeBSD locale
2002-10-27 17:01:48 +00:00
Ilia Alshanetsky
e12826bc34
Added expected output.
2002-10-26 20:55:48 +00:00
Derick Rethans
758d074822
- Fix typoes
2002-10-26 20:09:15 +00:00
Derick Rethans
77d10050e1
- fix type
2002-10-26 20:07:49 +00:00
Melvyn Sopacua
93fcd7ea5d
Test for bug in sprintf
...
# Doesn't segfault for me, but gives a lot of garbage, so I really don't
# know what the output should be. Results posted to QA
2002-10-26 20:07:26 +00:00
Marcus Boerger
92b63c4be5
remove original version
2002-10-26 16:58:38 +00:00
Marcus Boerger
24fe2a0f2d
change to use EXPECTREGEX and rename
2002-10-26 16:56:26 +00:00
Marcus Boerger
0679a9139f
split tests
2002-10-26 16:48:03 +00:00
Marcus Boerger
0d68286a95
fine tune
2002-10-26 16:09:50 +00:00
Moriyoshi Koizumi
5a6c529f43
Renamed test cases
2002-10-25 21:39:02 +00:00
Moriyoshi Koizumi
e7cc9d0274
Updated the test cases for htmlentities()
2002-10-25 13:12:31 +00:00
Marcus Boerger
0433e71a76
README.TESTING examples
2002-10-25 10:46:19 +00:00
Marcus Boerger
d5911a2cbb
remove unnecessary sections
...
#becomes an example
2002-10-25 10:28:37 +00:00
Moriyoshi Koizumi
75db2913f1
Added some cases which test if charset determination with
...
SG(default_charset) works.
2002-10-24 22:21:03 +00:00
Moriyoshi Koizumi
c7c418c25a
Added new test cases for htmlentities
2002-10-24 21:11:41 +00:00
Melvyn Sopacua
6695544db2
- Add locale string for FreeBSD
...
ATTN: Test nog longer skips, but fails. So whatever has changed since 4.2.3
affects BSD systems.
2002-10-24 19:17:11 +00:00
Marcus Boerger
1ff1e6496b
use german characters for a test with german locale
2002-10-24 00:49:38 +00:00
Ilia Alshanetsky
2f3cd572fb
Added 'skip logic' to the test on platforms where the locale required by
...
this test is not avaliable.
2002-10-23 23:04:43 +00:00
Andrey Hristov
d9c067ecc7
Test case regarding randomization of shuffle() and str_shuffle().
...
The code was provided by Adam Trachtenberg : adam trachtenberg com
2002-10-23 19:33:12 +00:00
Marcus Boerger
fa95a4a269
Shorten
...
# will be used as an example in README.TESTING
2002-10-23 12:47:31 +00:00
Melvyn Sopacua
d6e639a02f
test for locale support in strtoupper
2002-10-22 19:39:17 +00:00
Ilia Alshanetsky
6b67dc8dd5
Fixed implode test
2002-10-22 17:17:56 +00:00
foobar
e232b212ba
There is no point doing this test. Some systems think root can always execute so this is always true.
2002-10-21 00:30:05 +00:00
Derick Rethans
11961b1311
- Hopefully fix test file problems
2002-10-19 19:17:13 +00:00
Ilia Alshanetsky
04db537d97
Added tests for %e & %E
2002-10-15 12:08:02 +00:00
Ilia Alshanetsky
fed3b964ea
Added float printing tests.
2002-10-14 16:31:56 +00:00
Wez Furlong
39f8d4c971
Add a sanity check and more verbose output in the case of an error.
2002-10-14 02:25:51 +00:00
Derick Rethans
8f7f6045b0
- Make the test do what it says
2002-10-12 16:53:13 +00:00
Markus Fischer
f43e4cc93d
- Document were the first test came from.
2002-10-11 18:06:15 +00:00
Ilia Alshanetsky
8c6088839b
Added test for explode() function.
2002-10-11 15:19:57 +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
4da5ec8965
- Add case for bug 19858
2002-10-11 11:03:36 +00:00
Andrey Hristov
0e5ff737f4
Test case for str_shuffle().
2002-10-09 10:53:27 +00:00
Ilia Alshanetsky
7d19c1b9e5
Added nl2br() test
2002-10-08 23:46:02 +00:00
Ilia Alshanetsky
8c77e13e92
Added test for strrev() function.
2002-10-08 21:51:59 +00:00
Derick Rethans
2005705272
- Skip if the function is not available (in case pcre was not compiled in).
2002-10-08 09:46:31 +00:00
Derick Rethans
5a84ae6489
- Use error_reporting E_ALL
2002-10-08 07:55:02 +00:00
Ilia Alshanetsky
d6775c5c3f
Added tests for strstr(), strpos() and substr_count() functions.
2002-10-07 21:07:42 +00:00
Sander Roobol
00a2715eda
We're testing stripCslashes() here :)
2002-10-06 19:26:56 +00:00
Sander Roobol
3e222bcbf1
Some more weird tests on Derick's request :)
2002-10-06 19:17:04 +00:00
Sander Roobol
9edfd75a5c
Some string tests
2002-10-06 19:12:22 +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
Ilia Alshanetsky
12f47fe85a
Added expected data to parse_url() test
2002-10-06 16:15:06 +00:00
Sander Roobol
8cf14a42f5
Add testcases for implode() and str_repeat()
2002-10-06 11:26:49 +00:00
Derick Rethans
b007bd0696
- Add parse_url() tests (expect will follow later)url_t.phpt
2002-10-05 20:28:35 +00:00
Wez Furlong
077fe52d8b
This seems to resolve the issues with fgets.
...
I've moved EOF detection into the streams layer; a stream reader
implementation should set stream->eof when it detects EOF.
Fixed test for user streams - it still fails but that is due to an output
buffering bug.
2002-10-05 10:35:13 +00:00
Sean Bright
114dff39ce
Add missing ?>
2002-10-04 02:34:15 +00:00
Sascha Schumann
cfaffd2185
overflow check for _php_math_basetozval
2002-10-04 02:20:41 +00:00
Andrey Hristov
83a0f20381
Making strrchr() binary safe.
...
Test case added.
2002-10-02 18:58:09 +00:00
Ilia Alshanetsky
0454bf2d0d
Removed the ceil(-0.5); test. The return value is depedant on system's
...
libc and even when proper value '-0' is returned, var_dump() converts
it to 0 anyway.
2002-09-29 21:45:54 +00:00
Ilia Alshanetsky
0e7e7ae961
Corrected ceil(-0.5) output value, it is 0 not -0.
2002-09-29 19:21:10 +00:00
Wez Furlong
7694770304
Rename streams functions to fit with naming conventions, adding aliases
...
for old functions where required.
Make use of recent changes to chunk size and timeout setting code.
2002-09-28 22:14:21 +00:00
Andrey Hristov
7badd563cb
Test case for strspn()/strcspn().
2002-09-25 19:08:38 +00:00
Wez Furlong
9e84b3d5b5
Revise buffer/seek code a little.
...
Tidy up user streams even more.
Make test case quite aggressive.
2002-09-23 13:22:10 +00:00
Ilia Alshanetsky
fda169417f
Added a test script for strip_tags() function.
2002-09-21 17:34:45 +00:00
Andrey Hristov
9980cf5f53
Test case for array_intersect() and array_intersect_assoc()
2002-09-21 14:50:55 +00:00
Wez Furlong
ff7bece5bb
Tidy up some user stream code.
...
Add a small test case (not yet complete).
2002-09-18 10:15:40 +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
be1e23cbc9
Add var_dump float format test
2002-08-21 01:27:56 +00:00
Marcus Boerger
534a63b5af
Add combined base64 and md5 test
2002-08-21 01:26:21 +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
Sander Roobol
47ae4068bb
Made unserialize handle floats with an E notation - bug #18654
...
Patch by Christophe Sollet <csollet@coleebris.com>.
(I'll commit a new var_unserializer.c in a second)
2002-08-19 19:45:46 +00:00
James E. Flemer
9eb1213206
Close pipes to avoid deadlock.
...
Submitted By: Melvyn Sopacua <msopacua@idg.nl>
2002-08-03 14:54:30 +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
ace4a23dfc
Fixed stripslashes when magic_quotes_sybase is enabled, and add a test for
...
add- and stripslashes().
# this time without cvs messing up and aborting, hopefully :)
2002-06-18 11:51:06 +00:00
Sander Roobol
07975157eb
Fix stripslashes when magic_quotes_sybase is enabled, and add a test for
...
add- and stripslashes().
2002-06-18 11:42:21 +00:00
Hartmut Holzgraefe
808dd7dd5f
fix for bug #10616 -> mktime() with negative date offsets not working on MacOSX
2002-06-12 15:35:27 +00:00
Wez Furlong
e202ad5c8b
Add simple test case for proc_open
2002-05-23 10:46:06 +00:00
Preston L. Bannister
1fdff888ce
Remove leading "./" from include filenames as in PHP this defeats include_path.
2002-05-16 21:53:18 +00:00
foobar
2f12941fac
- Made all is_*() functions to return only boolean values.
...
- Killed the "file not found" error for is_link(). (finally..)
2002-05-16 01:07:21 +00:00
foobar
3b1ae7c62a
revert last bogus change. There is bug in is_file()
2002-04-30 10:38:06 +00:00
Wez Furlong
840ed90f2b
Fix is_file test.
...
# Is there a good reason for having the actual test in an include file??
2002-04-30 00:26:49 +00:00
Yasuo Ohgaki
de4a0ba58e
Add test case for file_exist/is_file
2002-04-28 00:05:43 +00:00
Marcus Boerger
42dc682626
fix testproblem
2002-04-11 06:41:55 +00:00
Hartmut Holzgraefe
954dbb2d35
fix and regression test for Bug #16473
2002-04-07 19:46:45 +00:00
Kirill Maximov
33ed30fce8
(PHP quoted_printable_decode) Fixed CR/LF processing for Windows/OS2
...
@ Fixed CR/LF processing for Windows/OS2 in quoted_printable_decode (kir)
2002-04-01 17:03:01 +00:00
Wez Furlong
4361807185
add test for file_get_contents
2002-03-28 01:20:28 +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
jim winstead
349936c93e
Fix calculation of output buffer size in wordwrap(). (Thanks to Wez.)
2002-03-18 02:00:57 +00:00
foobar
fe7a2440ca
- Renamed aggregate.lib.php -> aggregate.lib (.php files are always deleted bycvsclean)
2002-03-10 02:38:06 +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
Andrei Zmievski
513e598d1e
Adding object aggregation capability along with tests.
2002-02-21 03:32:42 +00:00
jim winstead
831473d76e
Rename finite/isinf/isnan to more standard is_*() names.
2002-01-09 23:59:05 +00:00
Derick Rethans
aee570302f
- Fix bug introduced in earlier patch
2002-01-09 16:03:36 +00:00
jim winstead
4fb4c6d4b3
More tweaking of wordwrap() with the cut parameter set. It was being a
...
little too aggressive and cutting words without breaking at spaces
first. (A couple of tests were incorrect.)
2002-01-05 23:49:58 +00:00
jim winstead
ca15b22212
New memcpy()-based wordwrap() implementation. The simple case
...
(single-character break, no forced break) appears to be about 60%
faster, and there's simply no comparison for non-simple cases with
non-trivial amounts of text. The old algorithm was O(n^2) (with an
unfortunately large constant factor) because of the use of strncat(),
the new one is O(n). Added some more tests, too.
@ - Made wordwrap() significantly faster. (Jim)
# test case: $t = join('',file('ChangeLog')); $w = wordwrap($t,10,"\n",1);
# new code completes in less than a second. i'm still waiting for the
# old code to finish.
2002-01-05 20:46:43 +00:00
jim winstead
461e105069
Fixed pow(), and added finite(), isinf(), and isnan(). Also fixed
...
pow() tests.
@- Fixed pow(), and added finite(), isinf(), and isnan(). (Jim)
# Jeroen was on crack, and apparently flunked arithmetic. Names of new
# functions subject to change if people get persnickety about them.
# (They're currently the same as the underlying C library function
# names. Hope nobody forgets to update the tests if they change the
# names.)
# Oh, and pow() uses the new parameter-passing API now.
2002-01-05 03:45:11 +00:00
jim winstead
4b8f435b2a
good grief, positive powers of 0 are well-defined. (code fix coming.)
2002-01-05 02:16:16 +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
jim winstead
f68b7c5f3e
Fixed segfault in wordwrap() when wrapping to zero width and using
...
multi-character break or trying to force cut (bug #12768 , now fails
and issues a warning because forcing a zero-width cut doesn't make
sense). Also converted to new paramater-passing API and avoid making
an extra copy of the return values.
# also added tests.
@- Fixed segfault in wordwrap() when wrapping to zero width and using
@ multi-character break or trying to force cut (bug #12768 ). (Jim)
2002-01-04 19:48:08 +00:00
Derick Rethans
ae07e93028
- Added test for recursive counting
2001-12-29 21:05:03 +00:00
Derick Rethans
6729156450
- Add test for floor and ceil
2001-12-22 11:52:56 +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
Derick Rethans
d578e05f96
Mail should go to php-dev
2001-12-16 13:04:02 +00:00
Thies C. Arntzen
0fd809a770
improve last patch:
...
non existant object variables are now serialized as NULL, this saves us from
buffering the serialized data.
2001-12-01 15:17:50 +00:00
Thies C. Arntzen
7ff5198c53
serialized data would be incoorect if __sleep() returned a variable-name
...
which is non-existant in the object.
submitted by: Bernd Roemer <berndr@bonn.edu>
2001-12-01 15:06:37 +00:00
Rasmus Lerdorf
55d9b2ad9c
Fix most of these tests - still think there is a bug in the long->float
...
conversion stuff somewhere
2001-11-13 13:12:46 +00:00
Rasmus Lerdorf
f78f4364a0
Different operating systems handle the group x bit differently, so
...
simplify this test to test the user x bit instead
2001-11-13 12:39:21 +00:00
Derick Rethans
6a5bcfef8d
- Fix for bugs #9640 and #13789
2001-10-27 17:50:26 +00:00
Jeroen van Wolffelaar
43b3da1396
Make math tests pass, round & co don't work this way, and there was an error
...
in expected output
2001-10-22 09:44:27 +00:00
foobar
701b1a548e
Fixed bug: #12617
2001-10-22 02:35:10 +00:00
Stig Bakken
925ff7f2b2
* remove version_{lt,le,gt,ge,eq} functions, added a third optional
...
parameter to version_compare doing the same thing
2001-10-11 10:35:59 +00:00
Stig Bakken
89bd184ea0
@Added version_compare() function (Stig)
2001-10-06 23:22:37 +00:00
Edin Kadribasic
26389258bb
Made assert test pass on systems with short open tags disabled.
...
Added .cvsignore
2001-10-06 09:38:29 +00:00
Jeroen van Wolffelaar
a1c2b86701
Fix the pow-test, it now succeeds on my machine
2001-10-05 23:37:08 +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
Thies C. Arntzen
e929389eeb
fix strtr() when called with two parameters. this has been broken for some time!
...
guys, when "optimizing" functions you _shoudl_ write a testcase for the
working function and make _sure_ that it works afterwards!
2001-09-13 10:48:41 +00:00
Stanislav Malyshev
8fd65b9f16
test big numbers too
2001-08-20 14:15:05 +00:00
foobar
d3aff0f6ee
make this test work.
2001-08-18 16:47:02 +00:00
Jeroen van Wolffelaar
b3a7b945fa
Fix test
2001-08-05 20:27:24 +00:00
Jeroen van Wolffelaar
71a6c03bef
Didn't commit the correct trim.phpt, it now passes
2001-08-05 19:06:34 +00:00
Jeroen van Wolffelaar
860be31cae
More tests
2001-08-05 18:38:48 +00:00
Jeroen van Wolffelaar
c105f7142f
Better abs() testing
2001-08-04 21:40:34 +00:00
Jeroen van Wolffelaar
58ee4e47a4
Fix bug in the tests :-(
...
There seems to be one real bug in pow(), I'm trying to fix it...
2001-08-04 18:03:29 +00:00
Jeroen van Wolffelaar
0cf60d749e
Added tests for pow()
...
#The tests near LONG_MAX/MIN fail, I know that
2001-08-04 13:20:31 +00:00
Thies C. Arntzen
61822fcd47
@ - assert() now accepts the array(&$obj,"methodname") syntax. (Thies)
...
+ some cleanups
2001-07-09 10:20:41 +00:00
Thies C. Arntzen
e7b01fc53c
added test for assert
2001-07-09 09:08:14 +00:00
Thies C. Arntzen
1be0975dff
added test for serialize
...
changed var.c to use Z_* macros
2001-07-09 09:03:06 +00:00
Sascha Schumann
d6d59a9ee5
1. st_blksize might be different for regular files and symlinks; hence
...
ignore differences in the twelfth element of the stat() array.
2. The 'test.file' is created by the script, thus the owner of the file
is the user id executing the script. A mode of 0654 does not grant
the owner the right to execute the file and therefore, the correct
output here is "not executable."
2001-06-21 11:15:38 +00:00
Jason Greene
7f3291ae8c
Fix is_executable test.
2001-05-11 02:45:49 +00:00
Derick Rethans
b181237582
- Partial fix for bug #9050 , support for "Jan 19 2000" date format
2001-05-06 18:33:49 +00:00
James Moore
7a85ec55f7
Adding microtime() tests
2001-02-04 16:56:59 +00:00
Rui Hirokawa
187828f2f2
moved to ext/iconv.
2001-01-09 15:40:49 +00:00
Zak Greant
bbf41d2116
Adding test for is_scalar().
2000-12-18 21:24:25 +00:00
Stig Bakken
6e1e78d1c6
@Added iconv() function (using libc or libiconv) (Stig)
2000-12-15 01:01:14 +00:00
Hartmut Holzgraefe
9b1b253548
fgetcsv() will now work correct with empty fields in tab delimited files
...
# fix for bug #8258 and regression test
2000-12-14 14:18:36 +00:00
Hartmut Holzgraefe
63e6b0b5bf
levenshtein() fixed, regression tests added (bug id #6562 and #7368 )
...
# fallback to unoptimized version for 4.0.4 release
2000-12-13 23:26:19 +00:00
Kirill Maximov
023a95ae1c
@ quoted_printable_decode() function is made RFC-2045 compliant. (Kir)
...
This hopefully closes bugs #5321 , #7138 , #7855 .
Test script for the function is added.
2000-11-17 10:55:37 +00:00
Stig Bakken
1bb90f5805
* all tests should pass now (expect for the interbase stuff that I haven't
...
had the chance to test)
2000-08-31 22:21:47 +00:00
Stig Bakken
315f4f5658
@PHP 3 regression testing framework re-born (Stig)
...
Took the old PHP 3 regression testing framework and rewrote it in PHP.
Should work on both Windows and UNIX, however I have not tested it on
Windows. See tests/README for how to write tests. Added the PHP 3
tests and converted most of them.
2000-08-27 19:46:06 +00:00