Ilia Alshanetsky
bab1ce1429
Fixed bug #41693 (scandir() allows empty directory names).
2007-06-14 23:28:06 +00:00
Raghubansh Kumar
788ac84cf4
New tests for file system handling functions
2007-06-14 20:12:58 +00:00
Zoe Slattery
c73237b7b9
Tests are not valid if run by root - adding check to skip is user is root.
2007-06-14 15:40:06 +00:00
Raghubansh Kumar
ed39fac5d2
New tests for file handling system functions
2007-06-13 22:38:49 +00:00
Raghubansh Kumar
648aaf250a
New tests for file handling system functions
2007-06-11 16:14:59 +00:00
Zoe Slattery
860c643448
New tests for file handling
2007-06-06 12:53:58 +00:00
Zoe Slattery
7a7c447a17
fixed file permission for new empty file
2007-06-06 12:53:17 +00:00
Zoe Slattery
7a03838430
Fixing incorrect comment in test cases fileinode_variation and filetype_variation
2007-06-05 11:35:04 +00:00
Zoe Slattery
ce71724def
New test cases for file system functions
2007-06-05 09:10:50 +00:00
Zoe Slattery
d5d297d461
Added fill_buffer() function
2007-06-05 08:02:17 +00:00
Antony Dovgal
bac779d6b6
check for required func
2007-05-27 14:39:21 +00:00
Zoe Slattery
eb0f324f70
New testcaes for file/strings/general_functions
2007-05-25 13:44:23 +00:00
Antony Dovgal
66859a74de
fix tests
2007-04-26 23:30:00 +00:00
Dmitry Stogov
b2785c3d4c
Fixed tests (win32)
2007-04-18 14:51:29 +00:00
foobar
191b843a02
Fix test
2007-04-09 20:07:25 +00:00
Nuno Lopes
f1d075a102
increase the stream_select() timeout, to make the test pass in a slow machine with valgrind
2007-03-02 18:54:13 +00:00
Antony Dovgal
e1fe2c9165
MFH
2007-02-21 22:08:08 +00:00
Antony Dovgal
26fac39d5e
fix test
2007-02-21 19:57:15 +00:00
Antony Dovgal
29a9ba9639
new/improved tests
2007-02-13 12:59:53 +00:00
Antony Dovgal
634615cd42
MFH: fix tests
2007-02-12 14:49:05 +00:00
Antony Dovgal
77d93ee6b3
fix test
2007-02-11 20:06:19 +00:00
Antony Dovgal
323467f9c9
add test
2007-02-07 21:13:01 +00:00
Dmitry Stogov
933c26de41
Fixed bug #39367 (clearstatcache() doesn't clear realpath cache)
...
Fixed bug #40092 (chroot() doesn't clear realpath cache)
2007-01-22 09:31:46 +00:00
Antony Dovgal
9ce985bbae
cosmetic improvements
2006-12-05 23:03:19 +00:00
Antony Dovgal
60bb494607
MFH: fix #39673 (file_get_contents causes bus error on certain offsets)
2006-11-29 11:12:59 +00:00
Pierre Joye
efa9b7e20b
- MFH: #39538 , fgetcsv can't handle starting newlines and trailing odd
...
number of backslashes (David Soria Parra, Pierre)
2006-11-22 12:59:49 +00:00
Antony Dovgal
26ed531c64
add test
2006-11-21 18:17:11 +00:00
Antony Dovgal
39ad6abbf8
fix test on Solaris
2006-11-20 16:28:26 +00:00
Antony Dovgal
cf04587553
fix tests
2006-11-16 13:49:20 +00:00
Antony Dovgal
36d66521c9
add new tests
2006-11-16 13:01:23 +00:00
Antony Dovgal
d1acb8d4eb
add new tests, improve existing ones
2006-11-15 22:44:29 +00:00
Antony Dovgal
84ff4aaf1a
add new tests
2006-11-15 17:27:03 +00:00
Antony Dovgal
70288ef71e
fix test on AIX
2006-11-15 12:11:17 +00:00
Antony Dovgal
567aed8316
fix test
2006-11-15 11:27:26 +00:00
Antony Dovgal
60188ad863
fix test
2006-11-15 10:47:26 +00:00
Hannes Magnusson
849a7857ac
Fix test (file_put_contents() now uses __toString)
2006-11-15 07:58:02 +00:00
Antony Dovgal
6640a1c861
one more test
2006-11-14 22:23:45 +00:00
Antony Dovgal
963b1db67f
add new tests
2006-11-14 21:59:57 +00:00
Antony Dovgal
923b785fd1
add new test
2006-11-13 21:27:48 +00:00
Hannes Magnusson
4f4e724b1b
MFH: Remove SKIPIF
2006-11-03 14:17:40 +00:00
Antony Dovgal
0cf7b1012f
add new test by Pierre
2006-10-19 12:07:07 +00:00
Antony Dovgal
1cc0339d40
MFH: fix crash when parsing invalid hostnames/IPs
2006-10-11 12:53:56 +00:00
Antony Dovgal
99b133d7a7
MFH: fix double free(), add test
2006-09-15 07:27:22 +00:00
Antony Dovgal
c3209b53d2
new tests
2006-08-15 08:54:15 +00:00
Antony Dovgal
1ec10ac8c7
typos in comments and other minor improvements
2006-08-10 13:43:18 +00:00
Antony Dovgal
a76b852989
fix test
2006-07-28 13:47:56 +00:00
Antony Dovgal
4902fc6c25
MFH: fix #38086 (stream_copy_to_stream() returns 0 when maxlen is bigger than the actual length)
...
add tests
2006-07-13 12:00:17 +00:00
Antony Dovgal
40b87ec99f
MFH: /tmp is often a symlink, use /bin instead
2006-07-11 21:20:20 +00:00
Hannes Magnusson
77b307021d
fix test
2006-06-29 14:53:50 +00:00
Nuno Lopes
b7bca610dd
make sure the test outputs what we want
2006-06-20 21:49:16 +00:00
Hannes Magnusson
748b589925
Renamed to bug37864.phpt
2006-06-20 19:33:31 +00:00
Hannes Magnusson
1332a14cfc
MFH
2006-06-20 19:32:59 +00:00
Antony Dovgal
959af2a28d
don't leave garbage in tmp dir
2006-06-20 18:55:46 +00:00
Hannes Magnusson
3674994be5
MFH: test for file_get_contents leaking on empty file
2006-06-20 18:48:56 +00:00
Sara Golemon
79b21ec4cf
MFH: Minor fixes (bjori)
2006-05-30 19:06:22 +00:00
Antony Dovgal
ec68882101
add test
2006-05-29 10:42:54 +00:00
Marcus Boerger
59d2ce8258
- MFH Fix feof()
2006-05-23 22:31:25 +00:00
Marcus Boerger
e145343b57
- MFH Handle corrupt base64 data in data: url
2006-05-21 13:37:19 +00:00
Antony Dovgal
1feef82dc4
new mkdir tests
2006-05-16 13:06:06 +00:00
Marcus Boerger
3577115118
- MFH Add strict compliant RFC2397 support (no //)
2006-05-14 18:40:12 +00:00
Marcus Boerger
5b44266a5f
- MFH RFC2397 decoding
2006-05-14 01:42:03 +00:00
Marcus Boerger
0c09d4cb63
- MFH RFC 2397 meta data handling
2006-05-14 01:06:09 +00:00
Marcus Boerger
2100a86198
- MFH Initial support for RFC2397
2006-05-13 17:58:58 +00:00
Antony Dovgal
b81e20f8e8
bah.. no UEXPECT in this branch..
2006-04-22 23:47:25 +00:00
Antony Dovgal
658b22ad6e
add test for #37158
2006-04-22 23:46:42 +00:00
Ilia Alshanetsky
4bab5226b2
Fixed test
2006-04-10 23:48:10 +00:00
Antony Dovgal
6aaf510bf0
MFH: fix #36741 (userstreams testcase have off-by-one error on fseek())
2006-03-20 22:09:11 +00:00
Antony Dovgal
248be6fcfc
fix #35781 (stream_filter_append() can cause segfault)
2005-12-23 14:32:11 +00:00
Antony Dovgal
84326a9b72
add test for #35740
2005-12-20 09:51:53 +00:00
Dmitry Stogov
14594953d2
Fixed bug #35393 (changing static protected members from outside the class, one more reference issue)
2005-11-28 14:33:03 +00:00
Ilia Alshanetsky
cce5e8c9ea
Updated tests to use [] instead of {}
2005-11-16 15:13:20 +00:00
Dmitry Stogov
af0adbed39
Fixed fgetcsv() and fputcsv() inconsistency.
2005-10-21 12:13:39 +00:00
Ilia Alshanetsky
c933634253
Fixed crash inside stream_get_line() when length parameter equals 0.
2005-07-05 19:24:07 +00:00
Ilia Alshanetsky
49c233212b
Fixed bug #32160 (copying a file into itself leads to data loss).
2005-06-22 16:13:47 +00:00
foobar
a104447d46
Make sure $_ENV is populated
2005-06-18 02:24:37 +00:00
Wez Furlong
867e619154
add test for bug 27508
2005-05-11 02:01:44 +00:00
foobar
2887f89075
remove empty lines
2005-04-04 18:14:27 +00:00
foobar
28b13f50e6
Added testcase for bug #30362
2005-04-04 18:06:16 +00:00
Marcus Boerger
32e478b9fc
- Add fputcsv() (David Sklar)
2004-09-26 21:55:22 +00:00
Marcus Boerger
29cfd6d24f
- Remove unused blocks
2004-05-19 08:56:50 +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
Sara Golemon
4341ee6061
Userspace Directory Stream Test
2004-03-17 20:48:12 +00:00
Wez Furlong
0619eee6d0
test case for statcache corruption of BG
2004-02-23 21:07:10 +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
Ilia Alshanetsky
608db4728b
Added fgetcsv() tests.
2004-01-19 03:55:29 +00:00
Moriyoshi Koizumi
27f47eb173
"seq" isn't available for all platforms.
2004-01-04 03:06:11 +00:00
Sara Golemon
4af0ba44d9
Test additional wrapper methods [unlink, rename, mkdir, rmdir, url_stat]
2003-12-28 01:06:38 +00:00
Derick Rethans
112f424f70
- Fixed bug #26615 (patch by runekl at opoint dot com)
2003-12-13 18:55:53 +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
Moriyoshi Koizumi
6b7bd4be8f
ctime ( #10 ) may differ on several filesystems.
...
# I confirmed it on Darwin
2003-11-14 08:59:30 +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
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
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
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
6b5b6079da
Fix for bug #24313 (port from dead PHP_5 branch)
2003-06-24 13:56:25 +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
foobar
422309353d
CS
2003-05-18 14:55:18 +00:00
Moriyoshi Koizumi
80c75c4d62
MFB(r-1.1.2.7): fix test
2003-05-17 20:06:00 +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
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
c249c67178
New test for userfilters rewrite
2003-04-02 00:41:09 +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
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
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
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
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
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
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
Moriyoshi Koizumi
d2fa4670dc
Prevented test failure caused by LF code variety
2002-12-18 23:06:27 +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
Wez Furlong
4e85935386
MFB
2002-11-14 14:26:15 +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
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
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
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
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
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
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
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
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
Wez Furlong
4361807185
add test for file_get_contents
2002-03-28 01:20:28 +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
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
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
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