Steph Fox
f08aea109b
- IS_UNICODE checks and conversions
...
- stub and creation file updates
- far too many test updates to think about
2008-05-19 19:05:42 +00:00
Greg Beaver
25b8e6cc3f
MFB: add full metadata support for tar-based archives and test
2008-05-15 23:46:54 +00:00
Greg Beaver
144e472967
MFB: plug security hole of unfettered creation access to .phar magic directory
2008-05-15 16:09:21 +00:00
Steph Fox
c1ae13b985
- Make internal code back-compatible. This included a binary cast in the default stub, hence many test updates.
...
- Just over a third of tests pass. Test manifests are broken currently.
2008-05-14 21:27:31 +00:00
Felipe Pena
ede5c8dd09
- Fixed tests (added default_charset=)
2008-05-13 19:18:11 +00:00
Greg Beaver
82dc03941a
fix weird alias issues, add tests to check for new-found problems
2008-05-12 20:42:07 +00:00
Greg Beaver
ae789a055e
increase code coverage
2008-05-12 00:45:05 +00:00
Greg Beaver
b3bab5022a
increase code coverage
2008-05-11 23:07:12 +00:00
Greg Beaver
24efbb759b
simplify phar_get_link_location and increase its coverage to 100%
2008-05-11 23:03:56 +00:00
Greg Beaver
70d0a4c045
increase code coverage and fix tiny bug in handling of absolute links
2008-05-11 22:59:16 +00:00
Greg Beaver
5ba8ca70a4
fix alias overloading handling for archives that are not in use
2008-05-06 21:14:53 +00:00
Greg Beaver
bfbe53eeb2
refactor isTar/isZip/isPhar into isFileFormat(int format) where format is one of Phar::TAR,, Phar::ZIP, Phar::PHAR
...
[DOC]
2008-05-02 05:05:56 +00:00
Steph Fox
8a970147ad
- Allow setStub() to continue working
...
- Fix tests broken by earlier commit
2008-04-29 12:26:58 +00:00
Greg Beaver
11c93b8494
add checking for invalid alias on opening tar, and test
2008-04-26 22:31:44 +00:00
Greg Beaver
5b85b2074b
new test/updated test to ensure stub integrity (I was wrong, zip is fine)
2008-04-26 17:47:31 +00:00
Greg Beaver
52f5a0f2ac
increase code coverage
2008-04-26 17:34:14 +00:00
Greg Beaver
fc9aba79f5
add missing file (Steph: this fixes tests/tar/truncated.phpt, sorry :)
2008-04-25 04:29:08 +00:00
Greg Beaver
afa1439304
finish code coverage for tar file format
2008-04-21 06:46:40 +00:00
Greg Beaver
c4315bfb2b
add test for huge filenames, fix huge filename reading
2008-04-21 06:33:49 +00:00
Greg Beaver
1f6292e91d
new test for corrupted tar with hard link to nowhere
2008-04-21 06:21:09 +00:00
Greg Beaver
3d858f4aa9
implement symbolic link support within a tar-based phar archive
...
this also resulted in a major fix for mounted directories, which were recycling the 'link' field which
could cause stupid conflicts with actual links, so move that to new 'tmp' field.
2008-04-21 06:17:51 +00:00
Greg Beaver
f70d527661
use a tar generated by the tar command to test links. Test still fails
2008-04-20 21:48:30 +00:00
Greg Beaver
ca6f70c8a3
add test for symbolic and hard links
2008-04-20 17:59:14 +00:00
Greg Beaver
027180d6ee
new test for bad checksum, fix tar.c to catch tar archives with a corrupted first entry, fix memleak on bad checksum
2008-04-20 17:28:54 +00:00
Greg Beaver
4abe1a0978
fix tests to match CVS
2008-04-20 17:19:24 +00:00
Greg Beaver
f5dbaf64fc
add failing test for truncated tar archive
2008-04-20 15:12:09 +00:00
Greg Beaver
8001dfd8d0
new test, increases code coverage slightly
2008-04-20 14:54:05 +00:00
Greg Beaver
2c0e0e1a96
update tests to ensure all temp files are erased, and to current error messages
2008-04-14 15:58:12 +00:00
Greg Beaver
dc4da5e2f9
make tests php version-agnostic with regards to stream errors
2008-04-13 21:31:46 +00:00
Greg Beaver
0814b2df09
fix build if SPL is disabled
2008-04-12 21:43:39 +00:00
Greg Beaver
b0f281b159
restore Phar->compress/decompress() to simplify $phar->convertToExecutable(NULL, Phar::GZ) to $phar->compress(Phar::GZ)
...
[DOC]
2008-04-11 13:41:59 +00:00
Greg Beaver
c0d82e966f
refactor compress/convertToTar/convertToPhar/convertToZip/convertToExecutable/convertToData
...
into 2 methods:
convertToExecutable/convertToData. Both methods accept 3 optional parameters
1 archive type, Phar::PHAR, Phar::TAR, or Phar::ZIP
2 compression Phar::NONE, Phar::GZ, or Phar::BZ2
3 file extension. Default is <format>.<compression> where .phar.tar is executable .tar
convertToExecutable always returns a Phar object
convertToData always returns a PharData object
also added Phar::PHAR, Phar::TAR, and Phar::ZIP class constants
[DOC]
2008-04-11 04:20:15 +00:00
Greg Beaver
abfc228f36
add addFile/addFromString/addEmptyDir. API is identical to ext/zip
...
[DOC]
2008-04-09 19:23:31 +00:00
Greg Beaver
2e9fca4f0b
fix read/write for PharData object, update tests to current API
2008-03-24 03:01:31 +00:00
Greg Beaver
3fcc6565b7
with stream wrappers in include_path, and after marcus's last fix, only 1 failing test (tar/tar_makegz.phpt)
...
add mounted file/dir to url stat
2008-03-21 18:50:22 +00:00
Greg Beaver
0262e844c4
implement full support and usage of phar stream in include_path, for both 5.2 and 5.3.
...
5.3 code expects the proposed patch for stream wrapper in include_path to be committed
5.2 code only supports phar stream wrapper in include_path.
this is a 2-step process. After this, more magic, particularly in funcinterceptors.c will be
converted to use phar_resolve_path, which is far safer than the current implementation.
this needs windows and 5.2 testing unix/windows
2008-03-12 03:55:12 +00:00
Steph Fox
3ee08069a6
Rename archive during compressAllFiles*()
...
Note: this only works for tar archives at present pending a fix for bug #13352
2008-03-09 04:46:16 +00:00
Steph Fox
5e4b47fa87
fix tests
2008-03-03 19:36:09 +00:00
Steph Fox
8343d7c139
- A bit more work on PharData creation/conversion.
...
- If readonly=0, why not $phardata->convertToPhar()?
- Known issue with directories creating 'as-file' copies within the archive (all formats)
@Greg/Marcus/Tony: This passes all tests on my box, 5.2/5.3/release_ts/debug_ts, and I can't find any more memleaks. Obviously this is too good to be true, so if conversion is still messy elsewhere please feel free to fix, or bug and assign to me.
2008-03-03 08:41:15 +00:00
Greg Beaver
b5c765f942
fix tests
2008-02-24 23:48:19 +00:00
Steph Fox
89842172e3
Updating tests. 100% pass rate here now - not sure about the rest of the world just yet (sorry Marcus).
2008-02-24 19:34:05 +00:00
Greg Beaver
0c647b5c1c
fix test, missing phar.readonly=0 --INI-- section
2008-02-23 18:08:54 +00:00
Steph Fox
9a1e7ee88b
Update tests to accommodate those two extra bytes
2008-02-21 15:20:46 +00:00
Steph Fox
e8e85afbcc
Updating conversion tests to check for more conversion parameters than one. Note that these will all fail against current CVS.
...
@Greg: We need to clarify conversion policy across the board.
2008-02-21 14:45:44 +00:00
Steph Fox
6cc2426ff1
A much better solution for setDefaultStub(). The convertTo*() fixes should be trivial now.
2008-02-21 00:24:38 +00:00
Steph Fox
d8bebd7259
Implement $phar->setDefaultStub()
...
Note that Phar::createDefaultStub() still exists at this point
2008-02-20 19:22:12 +00:00
Steph Fox
8febc7fd54
Fix 'clean' sections
2008-02-20 13:33:00 +00:00
Steph Fox
89217ae543
Fix clean section
2008-02-19 03:24:18 +00:00
Steph Fox
2ad96985c7
- it helps if you add the new files :)
2008-02-12 16:42:35 +00:00
Steph Fox
85e641ebb4
Make tests/tar in line with tests/zip.
2008-02-12 16:39:59 +00:00