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
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
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
Greg Beaver
40e4bba7ba
spelling
2007-01-21 18:54:07 +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
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
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
025ed87f8f
add roadmap
2007-01-18 22:29:25 +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
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
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
Greg Beaver
373fb2f82f
add doc comments to help sort out what's what
2007-01-02 00:04:30 +00:00
Marcus Boerger
28af3ea8a7
- Update test after SPL change
2006-11-12 17:55:39 +00:00
Marcus Boerger
a289a0d435
- Fix memleaks
2006-11-12 17:37:51 +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
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
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
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
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
c818d09f6d
- Add initial array-access support based on Greg's patch
2006-03-04 22:48:05 +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
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
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
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
fa5831e7b5
- Fix a bunch of tests (not all done yet though)
2006-01-11 00:50:33 +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
Greg Beaver
106463c474
need PHP 5.1.2 because of bug in temp memory streams
2006-01-07 18:37:44 +00:00
Marcus Boerger
57c39d214d
- WS
2006-01-06 20:43:19 +00:00
Marcus Boerger
cc242b6afa
- Fix potential crash (const' type is not initialized in case of error)
2006-01-06 20:34:31 +00:00
Marcus Boerger
a4e0ddc67b
- I was missing here
2006-01-06 19:23:58 +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
2490f087b4
- Fix typo and change to sizeof usage
2006-01-06 17:32:34 +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
fbdb432847
- Typo
2006-01-06 15:31:42 +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
f3275b2080
- Made HashTable manifest a direct member rather than a pointer
...
- Need to find a working detection for compressed phars
2006-01-05 11:32:05 +00:00
Marcus Boerger
f65ab3c1e0
- If no compression was specified and we detect compression than simply set
...
compression mode.
2006-01-05 00:55:55 +00:00
Marcus Boerger
9b3ea9bb59
- Allow simple .phar too (in that case we guess no compression)
2006-01-05 00:53:41 +00:00
Marcus Boerger
d4a400726d
- Cleanup/simplify/let configure determine whetehr we are big/little-endian
2006-01-05 00:39:31 +00:00
Greg Beaver
cd6161c9c9
add Marcus as lead
2006-01-04 17:19:04 +00:00
Marcus Boerger
8f27248fbf
- Update tests
2006-01-04 16:43:42 +00:00
Marcus Boerger
7ed3be8240
- Fix TSRM builds
2006-01-04 16:18:31 +00:00
Marcus Boerger
b72e1143d2
- More clean up (no need to export enything because one may either access
...
the stream handler tables through the streams api or use the streams
which is prefered anyway).
2006-01-04 15:50:45 +00:00
Marcus Boerger
5a45646d8b
- Clearify names
...
- Fix several memleaks
- Cache files
2006-01-04 15:27:18 +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