Greg Beaver
6961da0811
add tests for directory creation and management for tar and zip-based phars, add isPhar() to phar-based test
...
to confirm it is indeed a phar-based archive
2008-01-09 03:51:38 +00:00
Greg Beaver
abde85c420
add rmdir() support, add rmdir to dir test
...
fix *extremely* ancient problem where phar_wrapper_stat always returned success indicating the file existed
rename phar_destroy_manifest to phar_destroy_manifest_entry
2008-01-09 03:47:22 +00:00
Greg Beaver
9f5b3a229f
fix empty directories in phar, add test
2008-01-09 00:58:37 +00:00
Greg Beaver
b93b48663d
complete set of new tests for zip-based phars (need to test compression for zip-based phars)
...
fix a whole bunch of zip-related bugs
tar tests need some naming
add phar information to error messages, fix existing tests to reflect this
2008-01-08 07:08:46 +00:00
Greg Beaver
0c346d9aec
add tar-based to 2 tests
2008-01-07 22:22:27 +00:00
Greg Beaver
36efc2a907
eliminate potential double-free of alias
...
major improvement of zip/tar-based phar stub execution, now __FILE__ says it is the phar, and not phar/.phar/stub.php,
so that the same stub can be used for phar or tar/zip-based phars
ridiculous speedup of rename() within a phar (something like 1000%)
last of the tar-based phar fixes
new tests for tar-based phars, fix existing tests to use new format of __FILE__
2008-01-07 22:21:10 +00:00
Greg Beaver
e78819fc01
new tests
2008-01-07 18:07:10 +00:00
Greg Beaver
5767e570b4
make test OS-agnostic
2008-01-07 18:05:23 +00:00
Greg Beaver
d9d91f424b
fp must be nulled on every write also when == phar->fp or we get stale fp and problems. add new test that unearthed this problem
2008-01-07 17:58:31 +00:00
Greg Beaver
4a59f700f1
add tar-based to test names
2008-01-07 17:41:30 +00:00
Greg Beaver
b18b960e17
new tests
2008-01-07 17:40:43 +00:00
Greg Beaver
9e179e4b93
fix test
2008-01-07 05:46:12 +00:00
Greg Beaver
ff1c8b2beb
new tests for tar format
2008-01-07 05:35:18 +00:00
Greg Beaver
826e98be83
eliminated memleak, now to make it recognize "dir" as a directory
2008-01-06 05:28:27 +00:00
Greg Beaver
0f94226b71
new test, exposes some memleaks, but not yet sure where they are (done for today)
2008-01-05 23:26:24 +00:00
Greg Beaver
632a633154
fix segfault, add separate tar test for readonly=0 on corrupted tar
2008-01-05 23:02:23 +00:00
Greg Beaver
2fa568b7b0
do not attempt to create a new phar if a file exists and is corrupted or is not a phar archive,
...
i.e. require a clean slate - a non-existent file or a valid phar archive - to muck around with phar contents
add the first tar-based phar test
2008-01-05 22:46:54 +00:00
Greg Beaver
ec0cd27f0d
modify test to ensure that query string is preserved when munging server vars
2008-01-05 22:04:58 +00:00
Greg Beaver
2410cc96b6
complete tests for Phar::mungServer
2008-01-05 22:02:33 +00:00
Greg Beaver
efc22a3726
new tests, fix mime type overrides (all web front controller primary features are now tested and working for regular phar files)
2008-01-05 06:14:43 +00:00
Greg Beaver
e864f512bb
new test, free resources on error in webPhar() (thanks new test\!)
2008-01-05 05:47:47 +00:00
Greg Beaver
dd11d4f64e
new test
2008-01-05 05:12:44 +00:00
Greg Beaver
41762671c8
new test
2008-01-05 04:30:30 +00:00
Greg Beaver
8f79663143
new test
2008-01-05 04:27:01 +00:00
Greg Beaver
3a27729fd8
new test
2008-01-05 04:12:24 +00:00
Greg Beaver
b859c9dd4b
beautify 404 error handler, and note missing file.
...
throw exception if webPhar() is attempted with an extracted file, as webPhar() makes no sense on-disk
2008-01-05 04:03:33 +00:00
Greg Beaver
2fd9f17353
clarify test names
2008-01-05 03:50:13 +00:00
Greg Beaver
08b7b76418
fix Location header for index if request has a /, 2 new tests, add index.php to frontcontroller phar
2008-01-05 03:49:01 +00:00
Greg Beaver
1549f54264
clarify test name
2008-01-05 03:42:05 +00:00
Greg Beaver
653dc9e8ce
fix front controller tests (requires patch to run-tests.php posted to internals a little while ago)
...
allow phars to have extension .php as last resort
fix phar-based phars for MIME_OTHER type
2008-01-05 03:41:43 +00:00
Greg Beaver
67688371f7
use zip_free() instead of zip_close(), and don't add a stub if it already exists in phar_zip_flush(), update TODO
2008-01-04 17:04:41 +00:00
Marcus Boerger
2eecfbf94e
- Change 'print' to 'die' for skip notices
2008-01-04 16:26:44 +00:00
Marcus Boerger
4aec466e95
- Pendantic changes
2008-01-04 14:06:50 +00:00
Greg Beaver
652d39c330
add zip-based phar support. not quite working is webPhar(), not sure why yet
2007-12-31 22:42:40 +00:00
Greg Beaver
02c7ff1343
complete re-factoring of front controller. Now it is done with
...
Phar->webPhar():
<?php
Phar::webPhar();
__HALT_COMPILER();
With the above stub, the default front controller will kick in. An array of mime type overrides, and another
array mapping phar file entry -> redirected entry can be used to further customize
[DOC]
2007-12-23 21:12:42 +00:00
Greg Beaver
d443c76bed
new test for front controller
2007-12-22 07:47:15 +00:00
Greg Beaver
8e4cc4b3dd
first attempt at major new feature: default front controller for web
...
Currently, an entire phar entry is leaked for no obvious reason, otherwise it works. Sample code:
The phar has to be created using Phar->useFrontController(); and the stub performs actual resolution of which file to load:
<?php
Phar::mapPhar();
include 'phar://' . __FILE__ . '/' . substr($_SERVER['REQUEST_URI'], strlen(basename(__FILE__)));
__HALT_COMPILER();
?>
Phar automatically determines mime type from the file extension and either parses or displays the file. Modification of REQUEST_URI
and other variables should happen in the stub
[DOC]
2007-12-22 07:46:53 +00:00
Greg Beaver
185a4a8309
on second thought, hooking into getcwd() is a bad idea, who uses this for code loading, anyways?
2007-12-21 04:49:25 +00:00
Greg Beaver
0d830a27ea
implement cleaning of crap paths - major functionality boost
2007-12-20 23:12:40 +00:00
Greg Beaver
2222da9493
making progress (include magic works)
2007-12-19 03:17:05 +00:00
Greg Beaver
0c51d58138
[unfinished] magically handle getcwd() and fopen() with include_path inside phar
...
this work is incomplete, but compiles and existing tests pass
2007-12-18 17:01:24 +00:00
Greg Beaver
7fa0b43518
fully implement Phar->copy(), fix test
2007-12-16 06:31:00 +00:00
Greg Beaver
427e54dcd9
add failing test
2007-12-16 01:11:50 +00:00
Greg Beaver
bb4096ff29
Phar->buildFromIterator now can also accept a stream handle as a value in addition
...
to a file path (string) or SplFileInfo object
[DOC]
2007-12-14 19:45:22 +00:00
Greg Beaver
f01adb0048
fix test
2007-12-14 18:54:54 +00:00
Greg Beaver
052dcfcbae
fix test
2007-12-14 18:37:49 +00:00
Greg Beaver
16c8adf0c1
fix test
2007-12-14 05:22:53 +00:00
Greg Beaver
3b356d5ed8
new test
...
now, SplDirectoryIterator can be used directly with Phar->buildFromIterator() in order to populate the
files in a phar archive. When combined with a RegexIterator and other filters, it becomes very easy to create
a phar archive with 1 line of code
[DOC]
2007-12-13 05:22:06 +00:00
Greg Beaver
6e78306595
new test
2007-12-13 01:20:25 +00:00
Greg Beaver
4f2d1674ca
new test
2007-12-13 01:14:13 +00:00
Greg Beaver
c1a6037cf2
fix test, new test
2007-12-13 01:12:10 +00:00
Greg Beaver
38b35f1448
Phar->buildFromIterator: fix another mem leak, fix test
2007-12-13 01:05:59 +00:00
Greg Beaver
463731e2de
Phar->buildFromIterator: use spl_iterator_apply(), add 4 tests (mem leaks not yet fixed in the 4th)
2007-12-13 00:54:15 +00:00
Greg Beaver
f8fc8fbd69
fix test in 5.3+
2007-12-11 19:19:47 +00:00
Greg Beaver
84c3c96754
add helper phars for test
2007-11-25 05:25:04 +00:00
Greg Beaver
48ca9c876c
new test to verify signature algo parsing works
2007-11-25 05:24:50 +00:00
Greg Beaver
38fc1fbc35
new test for dir iteration (covers some code missing in gcov tests)
2007-11-25 05:15:50 +00:00
Greg Beaver
4bcb68a4e8
fix errors found in delMetaData(), add get/delMetaData() to MetaData read test
2007-11-25 05:04:40 +00:00
Greg Beaver
4f34a69ad0
new test for Phar::getModified()
2007-11-25 04:54:36 +00:00
Greg Beaver
6b3562c107
new test for no signature
2007-11-25 04:52:49 +00:00
Greg Beaver
634edbe97a
fix test expected output
2007-11-25 04:49:53 +00:00
Greg Beaver
8fa1a31626
MFB fix to test
2007-11-25 04:48:14 +00:00
Greg Beaver
0a4d447b28
add new tests for Phar::getSupportedCompression
2007-11-25 04:43:01 +00:00
Marcus Boerger
0e83c5c37a
- fix more variable stuff
2007-11-06 14:49:15 +00:00
Marcus Boerger
74fe7a1e20
- fix tests
2007-11-06 14:47:11 +00:00
Greg Beaver
6d98d843af
fix TSRM, a couple of compile warnings on windows, and test
2007-10-18 19:47:24 +00:00
Greg Beaver
543ad01efd
move to 1.3.0 development
...
add Phar::delete()
2007-08-25 01:32:35 +00:00
Greg Beaver
5178a94545
add test for pre-existing alias failure, fix source to fail if alias already exists
2007-08-23 23:23:26 +00:00
Greg Beaver
0bd0d85673
implement Phar->setAlias()
2007-08-23 04:49:39 +00:00
Marcus Boerger
4098ac4c25
- Fix test
2007-05-29 09:13:57 +00:00
Marcus Boerger
096e123f2d
- Verify stub
...
- Automatically cut off stub after __HALT_COMPILER();
- Always write longest stub ending, so there is no issue with length field
- Add test for setStub from file
- Fix tests
2007-05-27 16:54:37 +00:00
Marcus Boerger
ac05df4759
- For errors "internal corruption of phar ... (truncated manifest)" be more
...
precise about reason of failure, seperating all error strings
- Fix issue with writing compressed entries
- Fix issue with uncompressing entries
2007-05-27 15:47:52 +00:00
Marcus Boerger
20d2f3f42d
- This test needs to write
2007-05-20 18:34:17 +00:00
Marcus Boerger
6e05f480f0
- Add new test
2007-05-14 17:40:40 +00:00
Marcus Boerger
7aa7448a32
- Fix Phar::canWrite(), had inverted logic
...
- Support PHP & builds
2007-05-09 18:09:41 +00:00
Greg Beaver
e97b1aefbf
fix memleak in external dirs
...
update package.xml
move API to 1.1.0
update package version to 1.1.0RC1
update API test
2007-03-26 16:42:47 +00:00
Greg Beaver
0deb79b705
fix tests, add missing break to setSignatureAlgorithm()
2007-03-26 00:29:22 +00:00
Greg Beaver
0d67c19edb
add tests for signature algo
2007-03-26 00:01:34 +00:00
Marcus Boerger
c42a870b7e
- Add general SHA-2 support by optional pecl/hash dependency
...
# We actually need support to select the signature type somehow
2007-03-25 21:43:49 +00:00
Marcus Boerger
b983973a1d
- Add ini: phar.extract_list
...
- Add Phar::getExtractList
- Both allow to set a mapping <phar-file> to <extract-dir>
[[DOC]]
2007-03-25 19:03:38 +00:00
Greg Beaver
18cb2d59d4
rename begin/isFlushingToPhar/commit to startBuffering/isBuffering/stopBuffering
2007-03-22 16:31:46 +00:00
Marcus Boerger
41464c299c
- Add new test
2007-02-07 08:36:50 +00:00
Antony Dovgal
bc779b98ec
fix test, this error message may vary
2007-02-06 20:48:37 +00:00
Marcus Boerger
3a64f890cb
- Fix test
2007-02-06 20:14:26 +00:00
Greg Beaver
bc17dcfcd1
fix several potential segfaults, add tests for chmod(), fix chmod()
2007-02-06 17:09:37 +00:00
Marcus Boerger
357b931e56
- Add additional check & test
2007-02-05 20:47:20 +00:00
Marcus Boerger
5928d89d50
- Detect \0 in paths where possible
2007-02-05 19:16:07 +00:00
Greg Beaver
c0e2739103
improve error message empty entry => empty directory. Add check for phar://blah.phar/. and phar://blah.phar/..
2007-02-05 07:19:35 +00:00
Marcus Boerger
f210205e70
- PHP_VERSION_ID exists only in newer PHPs (5.1+)
...
- Improve error checking
2007-02-04 20:10:03 +00:00
Marcus Boerger
1c690cb9d4
- Add path sanitizer for new paths
...
- Add test for a few things we check with the sanitizer
# We might want to use the sanitizer for opening as well
2007-02-04 13:21:40 +00:00
Greg Beaver
93b387d327
fix mem leak on error, fix cwd issue. go back to BadMethodCallException for Phar->set*CompressedAllFiles(). ALL TESTS PASS, RELEASE IS IMMINENT
2007-02-03 04:04:18 +00:00
Greg Beaver
996b8e6108
fix test
2007-02-03 02:39:34 +00:00
Greg Beaver
340e9b24fc
s/isFlushing/isFlushingToPhar much clearer purpose in method name
2007-02-03 00:45:24 +00:00
Marcus Boerger
5f8256cfc1
- Update TODO
...
- Add Phar::isFlushing()
- Improve test
2007-01-30 20:58:14 +00:00
Marcus Boerger
c9a8668847
- Add new test
2007-01-30 07:29:45 +00:00
Marcus Boerger
df99fd3d61
- CS & Fix expectations
2007-01-29 22:21:48 +00:00
Greg Beaver
c7a5d062f5
throw exceptions from Phar object, and errors from stream wrapper
...
# we need to account for uncaught exceptions in shutdown, 2 tests leak because of this
2007-01-29 06:02:19 +00:00
Greg Beaver
c6dc9be489
implement Phar->getMetadata() Phar->setMetadata(), add tests, implement meta-data in the header
2007-01-29 03:59:55 +00:00
Greg Beaver
744ec410ec
add rename support
2007-01-28 22:43:38 +00:00
Marcus Boerger
0bc1b90ec3
- Split commit into commit and setStub
2007-01-28 22:11:28 +00:00
Greg Beaver
f78dc091f3
make sure we are in the test directory
2007-01-28 21:48:36 +00:00
Greg Beaver
a51ded0160
new test for creation of phar in current directory
2007-01-28 21:47:29 +00:00
Marcus Boerger
1259c3f17a
- Fix tests
2007-01-28 21:21:04 +00:00
Marcus Boerger
510c6e0dd1
- Test naming
2007-01-28 10:34:58 +00:00
Marcus Boerger
e1db72467c
- Fix read/write mode handling
2007-01-28 10:32:45 +00:00
Greg Beaver
e8cabb46f6
fix commitWrite test, enable creation of Phars with phar object
2007-01-28 05:40:18 +00:00
Greg Beaver
2ee6816c43
new failing test for commitWrite()
2007-01-28 05:11:41 +00:00
Greg Beaver
22f8379ea6
up API version to 1.0.0 - the file format is solid, prepare for release sometime in the near future
2007-01-28 03:59:30 +00:00
Greg Beaver
2513903e40
stream context for specifying meta-data
2007-01-28 03:25:53 +00:00
Marcus Boerger
a2bcf381b7
- Fix test
2007-01-27 23:11:45 +00:00
Greg Beaver
a9901f31db
fix uncompressAllFiles() and compressAllFilesBZIP2(), add tests
2007-01-27 19:37:17 +00:00
Marcus Boerger
f096d18cd5
- Add missing INI setting
2007-01-27 19:17:56 +00:00
Greg Beaver
1d11c2c4a7
fix memleaks and all but 1 test
2007-01-27 18:45:48 +00:00
Marcus Boerger
fa60adaffa
- Add new tests
2007-01-27 17:32:21 +00:00
Marcus Boerger
e2a46679bd
- context not needed here
2007-01-27 17:27:09 +00:00
Marcus Boerger
ced8e1d9d1
- Make phar_flush() work without reloading
...
- Make refcounting fly
2007-01-27 15:31:24 +00:00
Greg Beaver
616fa5839c
fix test (still fails, but the test is accurate now)
2007-01-26 14:56:56 +00:00
Greg Beaver
8de7bd61bf
implement phar refcounting
...
move setStub to commitWrite() and add beginWrite()
# many oo-based tests still fail, they need to be tweaked and fixed
2007-01-26 14:52:10 +00:00
Antony Dovgal
d6af95d1a4
fix folding and a couple of typos
2007-01-23 23:31:14 +00:00
Greg Beaver
d8c26fd461
fix tests, fix corruption issues with compression, simplify code. 3 tests still fail, memory leaks and mysterious crc error - the 16 tests are faulty
2007-01-22 03:41:41 +00:00
Marcus Boerger
47f82ace64
- Test names
2007-01-22 02:31:28 +00:00
Marcus Boerger
a3bce062fa
- Don't be to picky, as long as we get an error here, we're fine
2007-01-22 02:24:40 +00:00
Marcus Boerger
ed454d0fc8
- Finish get/setStub()
2007-01-22 00:59:02 +00:00
Greg Beaver
038de43fd6
new test for stream context setting of compression
2007-01-22 00:57:34 +00:00
Marcus Boerger
ea5e9b3190
- Add Phar::getStub(), step 1
2007-01-22 00:17:14 +00:00
Greg Beaver
27f4a3ad30
add setUncompressed(), setCompressedGZ(), setCompressedBZ2() to PharFileInfo, and a failing test (due to bug in streams + bug in phar)
2007-01-22 00:13:20 +00:00
Greg Beaver
9c2651d210
X Phar->setStub() for specifying a new stub to the phar [Greg]
2007-01-21 23:22:57 +00:00
Marcus Boerger
17eedd00b9
- Make ext/date happy if present
2007-01-21 20:22:36 +00:00
Marcus Boerger
d0d87d8435
- Rewrite/Finish metadata handling
2007-01-21 20:12:50 +00:00
Marcus Boerger
4529362c29
- Per defautl class Phar returns Info class on offsetGet()
2007-01-21 17:40:27 +00:00
Marcus Boerger
fc80ed5913
- Update tests
2007-01-21 16:58:23 +00:00
Marcus Boerger
a02afe32c1
- Fix issues with metadata testing
2007-01-21 15:57:12 +00:00
Marcus Boerger
3066cfb3ef
- Disable most of class Phar and all of class PharFileInfo if SPL is not present
2007-01-21 15:25:50 +00:00
Greg Beaver
f21a0cdd0c
fix final memory leak, fix metadata reading (simple), add basic test that it doesn't break
2007-01-21 06:54:04 +00:00
Greg Beaver
5bbd10296c
implement reading meta-data from phars. writing is not yet supported
2007-01-21 06:30:55 +00:00
Greg Beaver
c575e19101
fix ini tests EXPECT
2007-01-20 23:12:28 +00:00
Greg Beaver
773fc51457
implement ini handler for phar.readonly and phar.require_hash that allows enabling it on
...
PHP_INI_ALL if it is disabled in the system, but does not allow disabling it
if it is enabled in the syste
2007-01-20 22:40:47 +00:00
Marcus Boerger
154de1819e
- Fix flags and tests
2007-01-20 16:43:45 +00:00
Greg Beaver
a5dff13465
update TODO to include missing items
...
move permissions to the lowest bits of flags
fix warnings about signedness
fix unclear /* docs */
2007-01-20 05:28:48 +00:00
Greg Beaver
9e2db14202
fix test
2007-01-16 03:59:56 +00:00
Greg Beaver
28d4b75d26
fix for deleted files when read from, generalize refcount1 test better
2007-01-16 03:41:52 +00:00
Greg Beaver
36c1d32bde
failing test that demonstrates existing file pointer and PharFileInfo don't respond to changes in the underlying file
2007-01-16 03:21:55 +00:00
Marcus Boerger
fd30dc5858
- Fix error expectations
2007-01-14 18:57:22 +00:00
Marcus Boerger
433a932aad
- Improve flag handling
...
- Fixes to file open mode
- First step towards permission handling
2007-01-14 00:32:38 +00:00
Marcus Boerger
c6c23145f4
- Change to new layout wich has some more flags that will be used for perms
...
- Update/simplify tests
2007-01-13 16:17:04 +00:00
Marcus Boerger
ebdb8ac4c1
- Make test compatible with HEAD
2007-01-11 22:46:02 +00:00
Marcus Boerger
3bfece705f
- Fix test
2007-01-09 03:03:47 +00:00
Marcus Boerger
efba02d38e
- Easy debugging
2007-01-09 01:32:09 +00:00
Marcus Boerger
72873b5b27
- Add new test
2007-01-09 00:58:44 +00:00
Marcus Boerger
8e8697b1f7
- Add Phar::getSignature()
...
- Add Phar::getModified()
- Fix internal hash storage size
- Fix minor memory issues
- Drop boguscode lines (copy'n'paste left over)
- Increase api version to 0.9.0
2007-01-09 00:27:13 +00:00
Marcus Boerger
7093d72b5e
- Add initial hash support write/read/verify md5/sha1(default)
2007-01-08 23:03:41 +00:00
Marcus Boerger
7b069ebc00
- Be picky about names
2007-01-08 19:31:50 +00:00
Marcus Boerger
8919184420
- Fix test
2007-01-07 20:06:42 +00:00
Greg Beaver
420effc193
new test for unset()
2007-01-07 19:45:49 +00:00
Greg Beaver
1ef69b7f08
another attempt to fix unlink()/unset()
2007-01-07 19:45:31 +00:00
Greg Beaver
68b54b4d83
add test to make sure the phar is modified on disk
2007-01-07 18:51:39 +00:00
Marcus Boerger
0d8ec844d6
- Fix a memleak
...
- Fix uninitialized mem access
- Fix/improve error handling
- Add INI entry phar.readonly
- Add tests
2007-01-07 16:01:35 +00:00
Greg Beaver
94d1d69569
add unset support and test
...
make sure isset() does not return deleted files
do not store implicit aliases for the phar
2007-01-05 04:45:52 +00:00
Greg Beaver
8b94a6a254
add support for creating new files via array access
2007-01-05 04:27:49 +00:00
Greg Beaver
ef4749b8cf
fix creation of phar from scratch, add test case
2007-01-05 03:04:56 +00:00
Greg Beaver
c7c42d9d47
add test for delete in phar, we needed to check the deleted flag in case the new phar has not been flushed to disk
2007-01-05 02:04:07 +00:00
Greg Beaver
00f516cc99
fix creation of new files within an existing phar, add test
2007-01-05 01:50:26 +00:00
Greg Beaver
68cd2941fd
revert changes to test
2007-01-05 01:13:35 +00:00
Greg Beaver
10d45c7668
fixed crc - write test works
2007-01-05 01:13:13 +00:00
Greg Beaver
a90c542188
add new failing test for write support
2007-01-02 20:07:54 +00:00
Marcus Boerger
28af3ea8a7
- Update test after SPL change
2006-11-12 17:55:39 +00:00
Marcus Boerger
42e59effea
- Fix cvs access through SplFileObject
2006-08-06 13:47:21 +00:00
Marcus Boerger
73d7f02ddc
- Fix test
2006-08-06 12:49:43 +00:00
Marcus Boerger
6d09a7f151
- Drop supoerflous skipif
2006-03-11 00:25:07 +00:00
Marcus Boerger
d5b5583565
- Add test
2006-03-11 00:23:10 +00:00
Marcus Boerger
3dd3f2d736
- Works better with correct syntax
2006-03-10 23:02:18 +00:00
Marcus Boerger
5ed0ce3ae4
- Add new test
2006-03-10 22:55:09 +00:00
Marcus Boerger
ce7c583dd9
- Add neccessary skipif
2006-03-10 22:53:58 +00:00
Marcus Boerger
24b3a0d8c4
- Add new test
2006-03-09 23:03:27 +00:00
Marcus Boerger
8cabf9175e
- More testing via fgetcsv
2006-03-09 21:00:38 +00:00
Marcus Boerger
e0c9a617d5
- Add new test
2006-03-09 20:00:47 +00:00
Marcus Boerger
e324e11452
- Initial refcounting
2006-03-08 20:07:25 +00:00
Marcus Boerger
a616c42ae4
- Update tests
2006-03-07 20:08:41 +00:00
Marcus Boerger
60f477a6e3
- Make test not depend on my filesystem layout
2006-03-06 22:19:21 +00:00
Marcus Boerger
87cd1a45ef
- Add test
2006-03-04 22:49:34 +00:00
Marcus Boerger
9c3abcf198
- Add new test
2006-03-04 18:46:51 +00:00
Marcus Boerger
e687301be1
- Rename
2006-03-04 18:18:52 +00:00
Marcus Boerger
d5ab2187c6
- Add new test
2006-03-04 18:16:16 +00:00
Marcus Boerger
c9f49d277b
- Store min/max timestamp of entries while building manifest and use max
...
value for a/c/m-time of dirirectory stats.
2006-03-02 22:44:39 +00:00
Marcus Boerger
a3fcdf4f08
- Add OO interface to handling phar archieves and entries
...
- Add support for HEAD
- Cleanup
2006-02-28 01:36:30 +00:00
Marcus Boerger
42e3644d5b
- Add bzip2 decompression support
2006-01-12 21:16:29 +00:00
Marcus Boerger
566f8b136a
- Use consumed filter to check number of compressed bytes read
...
# This fixes all tests again
2006-01-12 02:33:28 +00:00
Marcus Boerger
8166072ea3
- Change to use streams filters which simplifies decompression a lot and
...
easily allows to use other compression algos too
2006-01-11 23:55:57 +00:00
Marcus Boerger
ae81cb9a1c
- Add new test
2006-01-11 23:54:30 +00:00
Marcus Boerger
cd24188fad
- Fix test
2006-01-11 21:34:48 +00:00
Marcus Boerger
b4e19230f9
- Split fname/phar-data mapping and alias/phar-data mapping
...
- Add test
2006-01-11 21:19:46 +00:00
Marcus Boerger
5b62ceebb2
- Fix more errors (by the way the phars are found)
...
- Cleanup code
2006-01-11 01:51:47 +00:00
Marcus Boerger
fa5831e7b5
- Fix a bunch of tests (not all done yet though)
2006-01-11 00:50:33 +00:00
Marcus Boerger
27dbc1d969
- Prevent overloading aliases
...
- Detect already loaded files and reuse them instead of reloading them
- Add a test for the above
2006-01-06 19:20:21 +00:00
Marcus Boerger
2de7a49fae
- No ini setting needed
2006-01-06 17:34:47 +00:00
Marcus Boerger
1431022aae
- Correct test name
2006-01-06 17:33:03 +00:00
Marcus Boerger
685fa28235
- Rewind stream when transferring ownership
...
- Add Phar::loadPhar + test
2006-01-06 17:23:42 +00:00
Marcus Boerger
e267d2c2d0
- And another test
2006-01-06 16:27:15 +00:00
Marcus Boerger
a4d469836d
- Add new tests
2006-01-06 16:11:54 +00:00
Marcus Boerger
abd2aeb1cd
- Use temp streams internally instead of memory to reduce memory usage
...
# Internally we try to use only one temp stream if possible by stoing
# the temp stream in the manifest entry and transferring ownership upon
# usage/close. If a particular file gets opened twice in parallel we open
# a second temp stream nonetheless.
2006-01-05 22:24:41 +00:00
Marcus Boerger
8f27248fbf
- Update tests
2006-01-04 16:43:42 +00:00
Marcus Boerger
2e6c551c5d
- Simple unlink is enough
2006-01-04 15:22:35 +00:00
Marcus Boerger
04fc3b48a2
- Fix test
2006-01-04 15:18:07 +00:00
Marcus Boerger
971ef71874
- Add test (fails right now (why ever))
2006-01-04 02:21:22 +00:00
Marcus Boerger
32ab7543b1
- Add new test
2006-01-03 21:34:11 +00:00
Marcus Boerger
6d079c9c82
- Class was renamed (change test names, too)
2006-01-01 23:05:42 +00:00
Marcus Boerger
1c9da67d89
- Class was renamed
2006-01-01 22:58:12 +00:00
Greg Beaver
1481746e13
test needed tweaking to pass now
2006-01-01 22:10:21 +00:00
Greg Beaver
a0f0f6c36a
update tests to new API (16, 18, 19 still fail)
2006-01-01 21:43:14 +00:00
Greg Beaver
b4cc79277a
complete unit tests (woohoo!)
...
add stream seek (mistakenly never enabled)
2005-12-12 06:17:16 +00:00
Greg Beaver
dd8e3dd4df
fix opendir, add test for subdirectory, revert stupid addition to 018.phpt
2005-12-11 08:14:44 +00:00
Greg Beaver
d4ac5bf120
make sure it doesn't pick up non-entries
2005-12-11 07:26:46 +00:00
Greg Beaver
7187bdc0d3
add opendir/readdir test for root dir, fix dir stat
2005-12-11 07:25:30 +00:00
Greg Beaver
ca86d4fa92
switch to php_stream_wrapper_log_error from php_error_docref (should be documented somewhere...), add test for failing stream open
2005-12-11 00:00:31 +00:00
Greg Beaver
285b5a934e
fix minor leak on zlib error, new test for gzipped internal file
2005-12-10 23:19:32 +00:00
Greg Beaver
bbbd9ba1f1
add missing tests
2005-12-10 02:33:35 +00:00
Greg Beaver
0552791eca
crc32 mismatch test
2005-12-10 02:33:09 +00:00
Greg Beaver
fb5cff819d
add crc checked flag, for slight speedup on multiple access to the same file
2005-12-10 00:00:00 +00:00
Greg Beaver
e1d98926ba
new test, better naming of tests
2005-12-09 23:55:52 +00:00
Greg Beaver
0285ef3952
fix leaks, mem corruption, and add test for successful phar
2005-12-09 23:37:03 +00:00
Greg Beaver
48050ca09d
add constraint check for number of manifest entries, and test
2005-12-09 19:55:29 +00:00
Greg Beaver
f86df41ff4
new test for truncated manifest
2005-12-08 07:49:47 +00:00
Greg Beaver
eb3c055e21
rework errors slightly. Add buffer overflow check for manifest, so we don't create a memory monster by accident
2005-12-08 07:34:16 +00:00
Greg Beaver
919b0736c5
add next truncation test, tweak error messages
2005-12-08 07:08:49 +00:00
Greg Beaver
16bd8c6ac7
add error if seeking fails on self, add test 1 for truncated phar
2005-12-08 06:46:02 +00:00
Greg Beaver
6ff5c1f974
add error if __HALT_COMPILER(); is not declared and new test
2005-12-08 06:38:26 +00:00
Greg Beaver
dc26e611e4
test for no zlib error message
2005-12-08 06:23:21 +00:00
Greg Beaver
eea900316b
add PHP_Archive::canCompress() which determines whether zlib decompression is available
...
clean up code slightly
add lots of error notification
add .cvsignore for tests/
update 002 to handle new testing behavior
2005-12-07 06:39:03 +00:00
Greg Beaver
9c9dcd7d88
parameter count test
2005-12-07 01:47:49 +00:00
Greg Beaver
0a786a87b0
first simple test
2005-12-07 01:44:24 +00:00