Commit Graph

177 Commits

Author SHA1 Message Date
Greg Beaver
05f0989797 tweak docs for canCompress 2007-01-16 00:00:26 +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
c13d272acc - Drop useless comment
- Move global macro def to .c
- Cleanup by using bit fields for internal flags
2007-01-13 17:10:18 +00:00
Marcus Boerger
1b98a49f8b - Change version validation to minimum api version required 2007-01-13 16:44:54 +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
1834516f7a - Reorder includes 2007-01-11 22:57:42 +00:00
Marcus Boerger
ebdb8ac4c1 - Make test compatible with HEAD 2007-01-11 22:46:02 +00:00
Marcus Boerger
7303202be1 - Fix a few things
- Cleanup
2007-01-11 01:04:47 +00:00
Marcus Boerger
0295f8bbdc - Fix shutdown issue (keep the speed) 2007-01-10 00:38:17 +00:00
Marcus Boerger
813d4a2451 - Simplify/Add comment 2007-01-10 00:07:45 +00:00
Marcus Boerger
a3020cee1f - Simplify 2007-01-09 23:57:03 +00:00
Marcus Boerger
a7d57a4814 - Fix write support & simplify 2007-01-09 23:23:12 +00:00
Marcus Boerger
af6a28ba0d - Simplify 2007-01-09 22:30:56 +00:00
Marcus Boerger
469a0c68dd - Cleanup 2007-01-09 18:54:37 +00:00
Marcus Boerger
3bfece705f - Fix test 2007-01-09 03:03:47 +00:00
Marcus Boerger
887a45e3e8 - Fix fname and alias hash table handling 2007-01-09 02:27:12 +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
f6da0a4df6 - Better handler names (group by prefixing) 2007-01-08 19:30:52 +00:00
Marcus Boerger
8919184420 - Fix test 2007-01-07 20:06:42 +00:00
Greg Beaver
e34af34365 fix unlink 2007-01-07 19:57:26 +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
71c7c383b4 fix unlink - make sure it actually erases the file 2007-01-07 19:05:12 +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
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
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
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
a90c542188 add new failing test for write support 2007-01-02 20:07:54 +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