Commit Graph

507 Commits

Author SHA1 Message Date
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
ad1be25d8c don't copy contents of linked/mounted files when converting an archive, and be sure to dupe mounted value 2008-05-11 22:45:03 +00:00
Greg Beaver
92f0dc842f fix test 2008-05-11 22:44:33 +00:00
Greg Beaver
4ccf0b846e slightly increase efficiency of function interception, and ensure that nothing fails even if the archive is unlinked mid-process 2008-05-11 21:30:05 +00:00
Greg Beaver
7149523766 add safety check to prevent unlinkArchive() from being called by a file within the archive 2008-05-11 21:15:47 +00:00
Greg Beaver
376deb39d6 split test into two versions for differences in parameter parsing in PHP 5.3+ 2008-05-11 19:41:45 +00:00
Greg Beaver
a0969ed78f make test version-agnostic 2008-05-11 19:37:43 +00:00
Greg Beaver
38d5943ee6 increase code coverage of funcinterceptors to 90%+, fix many bugs, fix errant wrong test condition in fgc_edgecases 2008-05-11 19:17:51 +00:00
Greg Beaver
53e02373d0 fix handling of mounted entries when flushing in all phars, and of deleted entries with open references in tar-based phars, do not extract mounted entries, add to test 2008-05-08 02:58:45 +00:00
Greg Beaver
a919e2f858 fix serious logic error and potential security issue with phar_compiled_file and
phar_find_in_include_path.  We were allowing data-based phars to be executed, and actually marking phar-based phar archives
without '.phar' in the name as data-based phars, which would allow modifying them even if phar.readonly=0.  Add test for this sinister case
2008-05-08 00:49:37 +00:00
Greg Beaver
f134a909c3 optimize phar filename extension detection to first search through known phars. This eliminates several stat/realpath calls for archives with lots of files 2008-05-07 17:24:22 +00:00
Greg Beaver
e765e8f6ca remove files created 2008-05-07 06:39:05 +00:00
Greg Beaver
eda25ddb34 validate user-supplied aliases when converting archives to other formats 2008-05-07 06:36:24 +00:00
Greg Beaver
549bf83bd1 [DOC]
remove phar.extract_list
remove Phar::getExtractList()
2008-05-07 05:38:31 +00:00
Greg Beaver
96d4c2b62f fix zip metadata for archive/fix perms for file in zip/all.phpt test 2008-05-06 21:46:26 +00:00
Greg Beaver
04735b675d new failing test for testing all zip creation facets 2008-05-06 21:34:19 +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
3d388e71d2 new test for unset behavior 2008-05-06 18:25:33 +00:00
Steph Fox
21460875fc - Some tests for buildFromDirectory() 2008-05-04 20:58:43 +00:00
Greg Beaver
a180fcc9bc add Phar::unlinkArchive() to allow complete removal of a parsed phar archive from memory and disk 2008-05-03 02:04:24 +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
Greg Beaver
c3816a2aa0 fix test to be truly path-agnostic 2008-04-30 23:06:04 +00:00
Greg Beaver
d16f86f528 fix Bug #13786 on unix (Steph can you verify?) 2008-04-30 22:16:25 +00:00
Greg Beaver
791bb5db46 fix test (passes in PHP_5_3 on my 64-bit machine, have not yet tested in 5_2) 2008-04-30 22:12:21 +00:00
Greg Beaver
73830f751f add missing file for test 2008-04-30 22:09:18 +00:00
Greg Beaver
aeefda4a50 stupid cut/paste error 2008-04-30 20:14:54 +00:00
Greg Beaver
9d27fab9c4 increase code coverage to test cwd stuffs 2008-04-30 20:14:15 +00:00
Steph Fox
8a970147ad - Allow setStub() to continue working
- Fix tests broken by earlier commit
2008-04-29 12:26:58 +00:00
Steph Fox
8559a2dbde - Prevent phars with empty manifests flushing to disk
- This would've fixed that test... removing clean section

@Greg: I commented out the call that breaks the Windows build, pending a decision about its future.
2008-04-29 12:06:54 +00:00
Steph Fox
7d3e9ef952 - Fix paths in test 2008-04-29 11:37:33 +00:00
Steph Fox
7762c5d204 - Add test for bug #13786 2008-04-29 10:45:23 +00:00
Greg Beaver
18f221c61d it's a bit cheesy, but make this test 5.2/5.3 agnostic :) 2008-04-28 22:32:15 +00:00
Greg Beaver
e2660a692b fix test 2008-04-27 23:59:14 +00:00
Steph Fox
51459aade4 - Another test that gives completely different results if readonly=0 2008-04-27 12:22:36 +00:00
Steph Fox
473abd4e2b - Deleting files we cannot see... 2008-04-27 11:36:22 +00:00
Steph Fox
37a8782f0c - Fix a couple of failing tests/bad cleanup
@Greg: the phpinfo() ones assumed no php.ini - this isn't always the case, even if it should be
2008-04-27 11:31:27 +00:00
Steph Fox
9e8c3ea9a7 - Always give reasons for skipped tests 2008-04-27 10:18:35 +00:00
Greg Beaver
5bf3d1d362 fix invalid free 2008-04-27 07:04:56 +00:00
Greg Beaver
fade22bfd8 fix ridiculously critical omission in zip flush - we never set compressed file size! Augment zip test for bz2/zlib-compressed alias files to increase code coverage 2008-04-26 23:02:51 +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
ad6e7fc667 add screening of alias to reading of zip archives, and test for bad aliases 2008-04-26 22:04:04 +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
489fe0331f add logic test to ensure stub is not overwritten when adding a file (zip currently does this - bad zip) 2008-04-26 17:43:53 +00:00
Greg Beaver
52f5a0f2ac increase code coverage 2008-04-26 17:34:14 +00:00
Greg Beaver
15f9f20c3c really fix test by fixing the regex 2008-04-26 17:32:18 +00:00
Greg Beaver
76c78a480e increase code coverage (and magically, mysteriously this tests passes with no other changes - weird) 2008-04-26 17:29:55 +00:00
Greg Beaver
eb6b941d2a fix clean 2008-04-26 17:28:28 +00:00
Greg Beaver
f37605ec0c increase code coverage 2008-04-26 17:27:47 +00:00
Greg Beaver
b22cc67e6b new test increases code coverage 2008-04-26 17:20:50 +00:00