Commit graph

653 commits

Author SHA1 Message Date
Marcus Boerger
887a45e3e8 - Fix fname and alias hash table handling 2007-01-09 02:27:12 +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
f6da0a4df6 - Better handler names (group by prefixing) 2007-01-08 19:30:52 +00:00
Greg Beaver
e34af34365 fix unlink 2007-01-07 19:57:26 +00:00
Greg Beaver
1ef69b7f08 another attempt to fix unlink()/unset() 2007-01-07 19:45:31 +00:00
Greg Beaver
71c7c383b4 fix unlink - make sure it actually erases the file 2007-01-07 19:05:12 +00:00
Marcus Boerger
e947f62b01 - Fix memory issues 2007-01-07 18:35:48 +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
Edin Kadribasic
b23813044d Var declarations first (fixes windows build) 2007-01-06 18:58:34 +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
10d45c7668 fixed crc - write test works 2007-01-05 01:13:13 +00:00
Greg Beaver
fc2d773388 major reworking of how the phar is re-worked in memory when written to, fix written phar
CRC32 check fails on newly added files in phar, I can't figure out why
2007-01-04 05:32:45 +00:00
Greg Beaver
801f8aaf01 add unlink support 2007-01-03 15:53:29 +00:00
Greg Beaver
d1cc13c9b2 fix all but one of the double-destroyed hashes, and all but one of the unclosed streams 2007-01-03 15:43:07 +00:00
Greg Beaver
3842b6712d correctly generate version string for new phar 2007-01-02 22:57:47 +00:00
Greg Beaver
c88a692b31 add some error handling to phar creation 2007-01-02 21:21:18 +00:00
Greg Beaver
5321858746 add some error handling to phar creation 2007-01-02 21:01:44 +00:00
Marcus Boerger
d013240a01 - Change write macros to inline funcs 2007-01-02 20:25:04 +00:00
Greg Beaver
0bbbb73910 fix a number of bugs found in testing new (uncommitted) unit test 2007-01-02 19:59:38 +00:00
Marcus Boerger
63bc59ae0a - TSRM fix 2007-01-02 19:54:09 +00:00
Greg Beaver
1ffb4ba7eb initial support for writeable phars
# we need to refcount everything, I suspect, or we can get segfaults, have not verified this though
# all the write stuff is untested, and Phar::__construct() does not allow creation of a new phar, only appending to and existing one
2007-01-02 18:15:17 +00:00
Greg Beaver
373fb2f82f add doc comments to help sort out what's what 2007-01-02 00:04:30 +00:00
Marcus Boerger
a289a0d435 - Fix memleaks 2006-11-12 17:37:51 +00:00
Marcus Boerger
45b6a1cb24 - Set clone handler even though right now some spl code snippet is missing 2006-03-10 23:53:41 +00:00
Marcus Boerger
d85294d0f4 - Fix issue with parser error in included phar:// entries 2006-03-10 23:52:57 +00:00
Marcus Boerger
b883386ff0 - safe_mode is nuked in head
- spl_filesystem_object now allows controlling of clone too
2006-03-08 20:31:23 +00:00
Marcus Boerger
e324e11452 - Initial refcounting 2006-03-08 20:07:25 +00:00
Marcus Boerger
96fc81d615 - WS/CS 2006-03-08 00:56:31 +00:00
Marcus Boerger
c818d09f6d - Add initial array-access support based on Greg's patch 2006-03-04 22:48:05 +00:00
Greg Beaver
0d12c29530 s/archieve/archive 2006-03-04 02:12:22 +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
40a610887d - Need to set eof flag when inner stream has eof condition 2006-02-28 14:44:23 +00:00
Marcus Boerger
946219de15 - Fix reflection info 2006-02-28 01:57:00 +00:00
Marcus Boerger
ce2b0345fb - This dtor is actually always needed 2006-02-28 01:45:28 +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
Greg Beaver
d536cb4139 update copyright year, and add credits for Davey Shafik/info on where Phar came from 2006-01-23 19:30:14 +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
b4e19230f9 - Split fname/phar-data mapping and alias/phar-data mapping
- Add test
2006-01-11 21:19:46 +00:00
Marcus Boerger
9222435376 - WS 2006-01-11 20:32:56 +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
23d81c4630 - Fix a few error checks 2006-01-11 00:50:07 +00:00
Greg Beaver
2ca31fa63c tests need updating, but this works with a valid 0.8.0 phar now. Additions include alias/apiversion/per-file flags in the manifest 2006-01-10 06:46:17 +00:00
Marcus Boerger
57c39d214d - WS 2006-01-06 20:43:19 +00:00