Commit Graph

167 Commits

Author SHA1 Message Date
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