Greg Beaver
e8756a3c3c
begin work on making phar php6-ready
17 years ago
Greg Beaver
42e0e5dfb7
fix signature generation/validation for zip archives by phar extension, fix a few edge cases where memory was leaked on error conditions by missing efree()
17 years ago
Greg Beaver
f21744809e
MFPECL: fix PECL bug #16338 , php_stream_copy_to_stream{,_ex}()
17 years ago
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
17 years ago
Marcus Boerger
e2ab5164ce
- MFH Fix dependency from Phar to hash
18 years ago
Greg Beaver
86f8d0a8e9
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
18 years ago
Greg Beaver
e16636f069
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
18 years ago
Greg Beaver
59379244ad
fix reading links from streams (works with PharFileInfo->getContent())
18 years ago
Greg Beaver
fffdf661c9
fix bug #45907 : undefined reference to PHP_SHA512Init
18 years ago
Greg Beaver
9eb83b6ae9
fix minor issues found by ICC (unused variables and the like)
18 years ago
Greg Beaver
760172fcee
fix Bug #46060 : addEmptyDir() breaks
18 years ago
Greg Beaver
28689c9c01
use '\0' instead of 0 for chars, removes intel warning
18 years ago
Greg Beaver
9397c4a5d1
remove unnecessary double variable declarations
18 years ago
Greg Beaver
270964c193
use safer strlcpy, patch by Tony Dovgal
18 years ago
Greg Beaver
6ac2c92ede
2 fixes, merge minor fixes from pecl/phar. Merge in corrected fix from pecl/phar for is_tar setting of tar_type
18 years ago
Greg Beaver
c3e8485971
fix bug #45792 : bz2 compressed files in zip failure
18 years ago
Steph Fox
4e5280a7a2
- ws/cs, macros, code that only affects other branches
- some unsynced changes need valgrind testing before they can go into this branch, see PECL/HEAD
18 years ago
Antony Dovgal
57caabf653
don't segfault if given invalid/empty private key
18 years ago
Antony Dovgal
2543206105
don't free function name before calling the function
18 years ago
Antony Dovgal
b53da9cd80
fix folding
18 years ago
Marcus Boerger
fb5c092815
- Fix openssl check
18 years ago
Dmitry Stogov
68537af530
Fixed directory reanming/deletion
18 years ago
Dmitry Stogov
478234b235
Fixed wrong refcount updates
18 years ago
Steph Fox
b9e8695e75
- One solution for the openssl issues
- config.m4 needs bringing into line with config.w32, there may be broken behaviour under *nix until this is done
18 years ago
Steph Fox
332a185e08
- ws, typo fix
18 years ago
Steph Fox
0e5b3a3527
- Don't free stuff you still need
18 years ago
Steph Fox
f43a2be8cd
- fix for segfault in 5.2 (patch from Greg)
18 years ago
Steph Fox
b964ec6e5d
- ws
18 years ago
Greg Beaver
14c26d05ba
fix leak
18 years ago
Steph Fox
97cf2a15da
- 5_2 compatibility stuff (so we can stay in sync with PECL)
18 years ago
Greg Beaver
aff3636d9c
minor performance improvement
18 years ago
Greg Beaver
7cc6b9f3f5
making progress - up to 42/phar vs. 48/disk with these optimizations
18 years ago
Pierre Joye
e5e9be2d1a
- really fix the windows builds, don't cast many times when only the hash function requires void **
- copy/paste evilness with TSRM_CC/DC
(tests still pass but would be nice to speed them up...)
18 years ago
Greg Beaver
cbe23b9f20
fix windows build and more performance jumps (these are minor)
implement real copy-on-write
use virtual_dirs for wrapper stat
18 years ago
Greg Beaver
5e3f592d88
fix memleak
18 years ago
Greg Beaver
04e257a8e1
HUGE speed improvement, from 19 req/sec to 27 req/sec for phpMyAdmin - now speed with apc+phar.cache_list = on-disk speedcvs diff -u |less This is by generating a list of virtual directories and using those in stat calls instead of scanning the whole manifest hash table. on-disk phpMyAdmin = 28 req/sec
18 years ago
Greg Beaver
4f9daeed11
[DOC] implement full signature support for tar-based archives. By default, data archives do
not have a signature, but can have one set via setSignatureAlgorithm()
18 years ago
Greg Beaver
5ff4deaa53
full refactor of signatures complete - now to implement them for tar as a starting point
18 years ago
Felipe Pena
d61f32d021
- Fix build (ZTS)
18 years ago
Greg Beaver
9c8d13fd6c
partial refactor - move signature verification into its own function, in preparation for tar/zip signature support.
next is signature creation
18 years ago
Greg Beaver
d0734964ca
fix memleak on error
18 years ago
Greg Beaver
4b035dae5f
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
18 years ago
Greg Beaver
de5aaaa74c
fix potentially major security hole: modification/creation of files in .phar directory enabled in many locations
which then allows easy creation of tar/zip-based phar archives with a simple rename even when phar.readonly=1. Plug the hole very tightly, allowing read access to
files, and also excluding them from opendir() output
18 years ago
Steph Fox
6a0682d986
- MFH
- Make internal code forward-compatible. This included a binary cast in the default stub, hence test updates.
18 years ago
SVN Migration
16b4d8e0e1
This commit was manufactured by cvs2svn to create branch 'PHP_5_3'.
18 years ago