Commit Graph

919 Commits

Author SHA1 Message Date
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
Greg Beaver
bf701fe74f disallow unlink() on extracted phars (the idea is that it is a read-only for execute thing), add tests for unlink edge cases 2008-04-14 17:54:38 +00:00
Greg Beaver
4cd9806d06 add stat test for root dir 2008-04-14 17:40:46 +00:00
Greg Beaver
754a3b9a76 add tests for extract_list and stat 2008-04-14 17:39:46 +00:00
Greg Beaver
3703d9195d nuke potential segfault in phar_open_url, remove mem leaks due to error logging in phar_wrapper_stat, add to test case 2008-04-14 17:36:48 +00:00
Greg Beaver
e00568dd6a s/l/L/ to match actual lstat errors 2008-04-14 17:31:01 +00:00
Greg Beaver
0828c08abc add test case for SEEK_CUR fseek 2008-04-14 17:24:39 +00:00
Steph Fox
ef203ea793 - Kill doze compiler warning 2008-04-14 17:23:25 +00:00
Greg Beaver
65e04335a6 add test case for inability to open extract_list file 2008-04-14 17:21:49 +00:00
Greg Beaver
e9de3a285d 2 more test coverage edge cases down 2008-04-14 17:19:55 +00:00
Greg Beaver
f3f9f52af9 minor re-factoring of phar_open_url to remove one nested brackets, put fopen edge cases in its own test, tweak test phar file names 2008-04-14 17:18:58 +00:00
Steph Fox
31596d1b45 - Fix ZTS build 2008-04-14 17:14:54 +00:00
Greg Beaver
6d06058e81 add test coverage for fopen() with append mode 2008-04-14 16:38:58 +00:00
Greg Beaver
abb0766b8f add phar.extract_list test coverage for opendir 2008-04-14 16:34:11 +00:00
Greg Beaver
19e4a6113f add test coverage for phar.extract_list and mkdir/rmdir 2008-04-14 16:30:55 +00:00
Greg Beaver
eb252c5c92 fix potential segfault if some idiot tries to remove the root directory of a phar, add creation of root directory to test 2008-04-14 16:26:01 +00:00
Greg Beaver
07e36f5cad increase code coverage further 2008-04-14 16:10:58 +00:00
Greg Beaver
e7cbf4ddfe add error message on attempt to rmdir/mkdir 'phar://', add to test 2008-04-14 16:04:11 +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
61a9b7d8ee increase code coverage slightly 2008-04-14 15:52:57 +00:00
Greg Beaver
dbf43f5e0d add test for mkdir() of sub-directory of existing file, and restore the removed free()s with an is_temp_dir test 2008-04-14 15:48:25 +00:00