Commit Graph

15 Commits

Author SHA1 Message Date
Greg Beaver
859bd13d09 add interception for readfile [DOC] 2008-04-15 03:36:57 +00:00
Greg Beaver
e00568dd6a s/l/L/ to match actual lstat errors 2008-04-14 17:31:01 +00:00
Greg Beaver
c22b6a76ed add test for stat interception, fix stat interception 2008-04-13 23:33:31 +00:00
Greg Beaver
02bbb72f6d add test for fopen interception, fix fopen interception 2008-04-13 20:46:45 +00:00
Greg Beaver
24d5595a8f add test for file_get_contents interception, fix file_get_contents interception 2008-04-13 19:36:33 +00:00
Greg Beaver
72daaf1d44 add test for opendir, fix bugs found 2008-04-12 22:21:29 +00:00
Greg Beaver
6cef8da201 move all blah++ to ++blah where possible for those with crapass compilers 2008-03-22 22:11:49 +00:00
Greg Beaver
d02dff1363 save work - sandbox is completely f**ed up, have to rm -rf and start again
This *SHOULD* fix issues, but I can't get run-tests to work reliably to be absolutely sure
2008-03-20 23:59:07 +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
Greg Beaver
f72ce59e95 remove refcount hack to workaround zlib memleak fixed in zlib
intercepted file functions now fall through if the file is not found in the phar, this allows access to external libraries
actually use include_path for locating files for inclusion and in file_get_contents/fopen when include_path is requested.
This allows applications like Zend Framework MVC implementation to function properly
2008-02-13 15:00:31 +00:00
Marcus Boerger
9fe2dd5697 - cleanup and make build with HEAD 2008-01-14 18:06:05 +00:00
Greg Beaver
e9ee7dbfc5 fix compile on windows
remove internal libzip
add required dep on zip (will make optional in a few minutes)
2008-01-12 04:32:19 +00:00
Greg Beaver
67a15e332f add missing defines, s/filename_len/filename_length/ (thanks steph) - now over to the windows box and debug this properly 2008-01-12 02:13:52 +00:00
Greg Beaver
36f3d80779 stupid windows doesn't allow varargs macros, so remove it. remove unused variable 2008-01-11 07:39:02 +00:00
Greg Beaver
8fb4205a8d add Phar::interceptFileFuncs()
To intercept fopen(), file_get_contents(), opendir(), and all the stat-based functions so that
code like "if (is_readable('./config.inc.php'))" actually works inside of a phar
[DOC]
2008-01-11 07:30:03 +00:00