Greg Beaver
6a9197f1ad
MFB: fix zip access to work in all compilers, present and future, and on all arches without potential for bus errors. This removes PHAR_ZIP_PACK in favor of a safer approach
2009-02-20 05:06:52 +00:00
Greg Beaver
5b9430b5d4
MFB: fix all remaining big-endian issues
2009-02-15 20:29:26 +00:00
Ilia Alshanetsky
e62d29d851
MFB: Fixed a possible crash when phar_create_signature() fails
2009-01-02 20:43:58 +00:00
Sebastian Bergmann
7f4dc8702a
Bump copyright year, 3 of 3.
2008-12-31 11:12:40 +00:00
Greg Beaver
1699efd72b
last commit was an old patch, revert faulty line
2008-10-26 05:51:04 +00:00
Greg Beaver
329229071f
MFB: fix several errors found by valgrind
...
1 - entry metadata not properly processed or retrieved from cached phars
2 - copy on write was using a void return value instead of int, a dangerous oversight in phar_update_cached_entry
3 - metadata creation in entries for cached phars was causing an invalid read
2008-10-26 05:49:24 +00:00
Antony Dovgal
79ec5dc2b9
fix ZTS build
2008-10-12 21:09:10 +00:00
Greg Beaver
c448cb165c
MFB: add tests for copy-on-write support
...
- fix metadata handling with cached phars
- fix virtual_dirs with rmdir
- ensure that after copy-on-write, all existing Phar objects link to the newly copied phar data
2008-10-12 19:40:30 +00:00
Greg Beaver
a4f39f7fa4
MFB: fix bug #45907 : undefined reference to PHP_SHA512Init
2008-10-09 00:51:27 +00:00
Greg Beaver
d86427434a
MFB: fix Bug #46194 : SIGSEGV when requested file is not found
2008-09-30 02:40:37 +00:00
Greg Beaver
ae98beaf02
MFB: fix 017.phpt in streams.c, and very dangerous intercepting of file functions in all cases introduced in multi-threaded fix
2008-09-26 23:35:11 +00:00
Greg Beaver
08139f40b3
MFB: fix bug #46178 : memory leak in ext/phar
2008-09-26 16:30:10 +00:00
Greg Beaver
8db86ad19e
MFB: fix minor issues found by ICC (unused variables and the like)
2008-09-13 22:31:18 +00:00
Steph Fox
cd011d1e9a
- MFB
2008-08-31 20:54:28 +00:00
Dmitry Stogov
a256e06404
Fixed bug #45613 Segfault when using is_file() on Apache-2.2.8
2008-08-14 13:02:13 +00:00
Steph Fox
c6aa379d74
- This is as good as it gets in HEAD at present (~30% tests fail here)
2008-08-01 13:45:06 +00:00
Greg Beaver
6db7baba99
MFB: fix corrupted zips, fix postprocess for compressed zip file
2008-05-30 22:49:46 +00:00
Greg Beaver
ca6d36efb8
MFB: refactor function names for clarity. No functionality change
2008-05-30 22:39:33 +00:00
Greg Beaver
195ee5ca73
MFB: fix PECL bug #13981 : Third-party zips fail entry interrogation
2008-05-29 17:34:58 +00:00
Stanislav Malyshev
f6af23d30e
MF5: Fix code path in phar_open_compiled_file() that tries
...
to open not-yet-loaded phar and fails on compressed files
# By Gregory's request
# Sorry, can't find how to write test case for that - it reproduces
# for me only under bytecode-caching. Suggestions welcome.
2008-05-28 21:50:41 +00:00
Steph Fox
76a9ec377b
- MFB major fixes
...
* found felipe's segfault in util.c and fixed the segfault (3 tests fail due to odd behavior of . and .. on this machine)
* fixed serious flaws in the setting/resetting of is_data - now it works properly. Assume
all new PharData are tar-based, and allow passing Phar::ZIP to PharData constructor to override this
* fix broken earlier commit, introduced segfault that broke 20 tests here
2008-05-24 14:18:31 +00:00
Steph Fox
bdca5a12b0
- MFB fix offset detection in tar files
2008-05-24 13:59:56 +00:00
Greg Beaver
11fb7561f0
enable by default statically instead of shared
...
this is done by removing zlib/bz2 explicit dependencies because they are unnecessary
we only ever use the stream filter, and the check for existence has
been moved to runtime where it is after startup
2008-05-17 20:07:38 +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
Steph Fox
ce586bf826
- MF53 dotted.path support
2008-05-13 18:43:18 +00:00
Steph Fox
247d91e780
- 'It builds on my box'.
...
- Don't expect any tests to pass.
2008-05-13 18:35:25 +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
e6558c56a3
increase code coverage to test mounting of phar URLs to internal file, and fix odd semi-race condition
...
where stream resources were not properly freed at script end
2008-05-12 00:16:59 +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
25a6be6cde
fix windows build
2008-05-08 03:10:18 +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
549bf83bd1
[DOC]
...
remove phar.extract_list
remove Phar::getExtractList()
2008-05-07 05:38:31 +00:00
Greg Beaver
f8db86b008
remove APC fanciness - this was causing non-caching of some files include()d inside a phar archive
2008-05-07 05:13:41 +00:00
Greg Beaver
5ba8ca70a4
fix alias overloading handling for archives that are not in use
2008-05-06 21:14:53 +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
Greg Beaver
ee1273af7a
remove hack introduced because of broken usage of php_resolve_path instead of zend_resolve_path
2008-04-28 22:41:20 +00:00
Greg Beaver
fbb2e8ce60
more fixes for PHAR_G(cwd)
2008-04-28 06:03:33 +00:00
Greg Beaver
fd9bf92ac6
fix out-of-bounds read potential by replacing strstr with a custom strnstr
2008-04-27 07:20:02 +00:00
Greg Beaver
5bf3d1d362
fix invalid free
2008-04-27 07:04:56 +00:00
Greg Beaver
94846549f5
fix APC compile hook interception, now APC actually caches files
2008-04-26 23:16:49 +00:00
Steph Fox
21584ed029
- kill a couple of (release build) MS compiler warnings
2008-04-24 16:59:23 +00:00
Greg Beaver
24d83fa7f8
fix break when uncompressed files are re-saved, fixes phar_copy.phpt test
2008-04-24 04:56:22 +00:00
Greg Beaver
3d890f09a8
fix extension detection for executable=2
2008-04-23 18:22:09 +00:00
Greg Beaver
c034683550
new test for Phar::isValidPharFilename. Fix Phar::isValidPharFilename. Fix extension detection for all cases
2008-04-23 18:11:20 +00:00
Greg Beaver
5a4a54f64b
remove unused code
2008-04-21 16:51:26 +00:00
Greg Beaver
aaf6101928
another refactoring to combine an error and improve code coverage as a side effect
2008-04-21 16:50:18 +00:00
Greg Beaver
32f2eeea47
minor re-factoring reduces code lines for an error (and evilly increases code coverage at gcov ;)
2008-04-21 16:46:01 +00:00