Commit Graph

148 Commits

Author SHA1 Message Date
Marcus Boerger
d5bbd84d76 - Prevent memory corruption 2007-01-27 21:23:02 +00:00
Marcus Boerger
c7523db97f - Cannot change stream here 2007-01-27 19:42:37 +00:00
Greg Beaver
7b6b53b83d php_stream_truncate_set_size() is a noop with temp streams.
so, we're going to use a brand new tempfile for truncation.

ALL TESTS PASS NOW (finally)
2007-01-27 18:57:12 +00:00
Greg Beaver
1d11c2c4a7 fix memleaks and all but 1 test 2007-01-27 18:45:48 +00:00
Greg Beaver
78f1b9401b fix memleak in unlink() 2007-01-27 18:27:19 +00:00
Greg Beaver
74d7701b2b fix incorrect refcount increment on unlink() 2007-01-27 18:03:40 +00:00
Marcus Boerger
13e860e66f - Fix memory access 2007-01-27 17:27:48 +00:00
Marcus Boerger
ced8e1d9d1 - Make phar_flush() work without reloading
- Make refcounting fly
2007-01-27 15:31:24 +00:00
Marcus Boerger
9cd8d73677 - Simplify by providing delref function 2007-01-26 19:58:22 +00:00
Marcus Boerger
e52a5adc34 - Fix stream closing 2007-01-26 19:43:04 +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
03dfef9f99 -Simplify 2007-01-22 02:07:45 +00:00
Marcus Boerger
261749d402 - Generate CRC32 in case not done in original file 2007-01-22 02:04:51 +00:00
Marcus Boerger
79985976a6 - CRC is done on uncompressed data 2007-01-22 02:00:18 +00:00
Marcus Boerger
2312d0772d - Drop erroneously added numbers in error messages 2007-01-22 01:01:50 +00:00
Marcus Boerger
ed454d0fc8 - Finish get/setStub() 2007-01-22 00:59:02 +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
d0d87d8435 - Rewrite/Finish metadata handling 2007-01-21 20:12:50 +00:00
Marcus Boerger
a02afe32c1 - Fix issues with metadata testing 2007-01-21 15:57:12 +00:00
Marcus Boerger
c440902e04 - Simplify dtor
- Zero terminate meta data
2007-01-21 15:28:56 +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
d661faefda fix 1 mem leak 2007-01-21 06:39:32 +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
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
c35b9f30b6 add class constants Phar::COMPRESSED, Phar::GZ, and Phar::BZ2 for eventual compression manipulation 2007-01-18 00:13:18 +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
05f0989797 tweak docs for canCompress 2007-01-16 00:00:26 +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
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
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