Greg Beaver
95fc6451f0
fix 98 of 105 failing tests on windows (real progress now)
2008-04-20 00:24:01 +00:00
Greg Beaver
9035dc059a
fix 3 failing tests out of 108 on windows (whoop-de-doo)
2008-04-19 17:57:24 +00:00
Greg Beaver
ef0139c866
fix ZTS build
2008-04-19 17:24:41 +00:00
Greg Beaver
f870b8ae74
fix ZTS build and Phar::isValidPharFilename
2008-04-19 17:24:26 +00:00
Greg Beaver
e94aaeada9
new test for unsupported compression versions, vastly enhance error messages on unsupported compression methods, fix memleak
2008-04-19 06:18:13 +00:00
Greg Beaver
aa61e6066c
new tests for corrupted zips
2008-04-19 05:58:40 +00:00
Greg Beaver
0d1e0b4311
new test for zip archives with files created from stdin
2008-04-19 05:53:57 +00:00
Greg Beaver
78c55d2f6d
new test for encrypted zips
2008-04-19 05:51:10 +00:00
Greg Beaver
d3a4ecf5ab
new test for central directory offset being wrong
2008-04-19 05:45:10 +00:00
Greg Beaver
bd3ddde29f
new test for truncated file comment, fix memleak found by test
2008-04-19 05:39:42 +00:00
Greg Beaver
4e98585ff7
new corrupt zip test
2008-04-19 05:35:03 +00:00
Greg Beaver
531caa6393
new test for corrupted zip with mis-matched entry counts, and fix memleaks in this test case
2008-04-19 05:30:48 +00:00
Greg Beaver
410ce457ab
add utility for creating corrupted zip archives for testing purposes
2008-04-19 05:15:24 +00:00
Greg Beaver
c4f502fae0
COMPLETELY rework filename extension detection. Now the only requirements are:
...
1 - executable phars must contain '.phar' in the filename
2 - non-executable phars must not contain '.phar' and must have an extension of at least 1 character
In addition, phar filenames must exist if opened for read, and the directory containing the phar must exist if opened for creation
if opened for creation, the file must not already exist
[DOC]
2008-04-18 04:13:13 +00:00
Greg Beaver
26e10f8cca
fix compression zip tests
2008-04-16 20:26:22 +00:00
Greg Beaver
a3e723b935
add failing tests for compression of zip files internally
2008-04-16 20:15:19 +00:00
Greg Beaver
31e6629895
fix large zip test
2008-04-16 20:08:02 +00:00
Greg Beaver
159e39d81d
load entire end of zip instead of weird 8k looping, logic is much simpler, and it's only 65k instead of 8k
2008-04-16 19:48:31 +00:00
Greg Beaver
8bc9ec5466
make test OS-agnostic
2008-04-16 19:47:41 +00:00
Greg Beaver
4e584728e5
fix end of directory locator detection code, add failing test for large zips
2008-04-16 04:34:25 +00:00
Greg Beaver
398bcf4dd0
fix test - metadata works now
2008-04-16 04:16:20 +00:00
Greg Beaver
8c4477cde5
fix segfault in meta-data parsing of zip archives
2008-04-16 04:15:08 +00:00
Greg Beaver
f513caa0a6
add failing test for metadata support in zip archives
2008-04-16 04:11:14 +00:00
Greg Beaver
dc837b5f53
rename is_zip parameter of phar_parse_metadata to more accurately reflect what it is
2008-04-16 04:01:33 +00:00
Greg Beaver
6eabae560b
increase code coverage
2008-04-16 03:55:13 +00:00
Greg Beaver
21b84bb728
forgot F in EXPECTF
2008-04-16 03:54:06 +00:00
Greg Beaver
cd9ecb53ae
increase code coverage
2008-04-16 03:54:05 +00:00
Greg Beaver
6387155b3d
add another test for alias overloading and make sure we disallow it when passed in constructor
2008-04-16 03:42:29 +00:00
Greg Beaver
ae3837851a
fix tests so $Revision$ does not screw with things
2008-04-16 03:27:45 +00:00
Greg Beaver
6c0564c721
increase code coverage for phpinfo(), rework CLI phpinfo for phar.extract_list to be legible
2008-04-16 03:26:20 +00:00
Greg Beaver
a12dc0ba3d
increase code coverage
2008-04-15 23:46:44 +00:00
Greg Beaver
277ba45f8f
re-add as binary
2008-04-15 19:26:35 +00:00
Greg Beaver
bf716e8e98
aha - added as ascii, removing in order to re-add
2008-04-15 19:25:46 +00:00
Greg Beaver
2d6ad98ed9
this was corrupted on my windows box. $1m question: is this newly regenerated phar valid on Steph's box and my unix box?
...
withphar.phpt and withphar_web.phpt use it
2008-04-15 19:25:06 +00:00
Greg Beaver
77b6ed3861
further big-endian systems fixes for zip
2008-04-15 19:16:47 +00:00
Greg Beaver
189b936ba3
fix test on windows
2008-04-15 18:41:03 +00:00
Greg Beaver
df32c25175
forgot to commit this yesterday - make error message test PHP-version agnostic
2008-04-15 18:33:47 +00:00
Steph Fox
cdabebdb98
- Clean files that actually exist ;)
2008-04-15 14:34:16 +00:00
Greg Beaver
1a2ac90cde
truly enable APC in phar
2008-04-15 13:52:02 +00:00
Greg Beaver
9e33e0cc5b
add support for proper APC caching
2008-04-15 04:56:34 +00:00
Greg Beaver
859bd13d09
add interception for readfile [DOC]
2008-04-15 03:36:57 +00:00
Greg Beaver
e465dc8711
add support for big-endian systems to zip implementation
2008-04-15 03:29:21 +00:00
Greg Beaver
a8d822ed16
fix test to be OS-agnostic
2008-04-14 22:50:52 +00:00
Greg Beaver
023d1c96ea
fix invalid variable access
2008-04-14 22:39:27 +00:00
Greg Beaver
e7a8df1248
fixes test on windows. Does it break on unix? the shadow knows
2008-04-14 22:27:34 +00:00
Greg Beaver
3cd16d46c9
fix test on windows
2008-04-14 22:22:04 +00:00
Greg Beaver
9f86ad6142
fix test
2008-04-14 18:35:10 +00:00
Greg Beaver
24b6df944d
complete rename code coverage tests, completely re-do errors (why are the streams funcs so dang inconsistent in error handling/return values?)
2008-04-14 18:33:12 +00:00
Greg Beaver
567870d4ef
remove unused file
2008-04-14 18:16:51 +00:00
Greg Beaver
0c9fcac767
remove redundant check for file existence, add another unlink edgecase test
2008-04-14 18:03:57 +00:00