Steph Fox
f55d753d3e
MFH Remove obsolete check (thanks Tony)
2008-08-02 15:38:46 +00:00
Dmitry Stogov
33f48b800c
Fixed bug #44100 (Inconsistent handling of static array declarations with duplicate keys)
2008-08-01 14:22:48 +00:00
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
2008-08-01 13:48:45 +00:00
Steph Fox
821bab83a3
- Merge ws/cs fixes to bring all branches into sync
2008-08-01 13:42:56 +00:00
Steph Fox
377ff97abd
- MFH Bring phar tests into line across all branches
2008-08-01 13:38:48 +00:00
Marcus Boerger
152e4273d1
- Consistency rocks: Make all lines start with tabs for indentation
...
# Just as anythign else we do.
# Also saves about ~0.5k in phar.phar
2008-08-01 06:16:35 +00:00
Marcus Boerger
d29fba1678
- Fix pear PHP_Archive class file location
2008-08-01 05:43:09 +00:00
Antony Dovgal
57caabf653
don't segfault if given invalid/empty private key
2008-07-29 11:18:40 +00:00
Antony Dovgal
2543206105
don't free function name before calling the function
2008-07-29 11:09:00 +00:00
Antony Dovgal
b53da9cd80
fix folding
2008-07-29 10:52:08 +00:00
Marcus Boerger
fb5c092815
- Fix openssl check
2008-07-27 04:23:00 +00:00
Steph Fox
6895773aff
- Utilize new UNIX_PATHS flag in SPL
...
- Fix tests
@Jani: hold back on the bunny-killing, HEAD will be in sync later today
2008-07-24 09:22:35 +00:00
Dmitry Stogov
c48c63f5e6
Improved webPhar speed (frontcontroller11.phar.phpt is disabled, should be removed)
2008-07-22 07:03:00 +00:00
Dmitry Stogov
68537af530
Fixed directory reanming/deletion
2008-07-20 14:42:34 +00:00
Dmitry Stogov
529ac539d0
Fixed access to freed memory
2008-07-18 09:35:51 +00:00
Dmitry Stogov
67b77b06e5
Fixed search on uninitialized data
2008-07-17 14:05:07 +00:00
Dmitry Stogov
5c631e8765
Fixed wrong arguments order
2008-07-17 13:22:32 +00:00
Dmitry Stogov
44557cf981
Improved support for opcode caches. Now some open() syscalls might be eliminated by caches.
2008-07-16 15:09:39 +00:00
Jani Taskinen
1e2b2bbeae
- Some config*.m4 file cleanups: NO tabs in these!
2008-07-14 09:02:26 +00:00
Antony Dovgal
0be3a5dcd5
drop unused var
2008-07-11 09:11:18 +00:00
Antony Dovgal
120f19b6a6
fix function protos and is_link() wrapper
2008-07-11 08:53:43 +00:00
Dmitry Stogov
478234b235
Fixed wrong refcount updates
2008-07-10 16:16:15 +00:00
Dmitry Stogov
d82b5d59b4
Added tests that demonstrate serious PHAR errors
...
They cannot be easly fixed without algorithms modification
2008-07-10 14:27:21 +00:00
Dmitry Stogov
53bbf1238c
Extensions MUST NOT manipulate with internal functions from EG(function_table) in run-time. It may cause problems with opcode caches and in multi-threaded environment. Now the same functions are overriden at MINIT and call original functions or PHAR ones dependent on flag setting.
2008-07-10 11:36:50 +00:00
Antony Dovgal
ae7eff10e8
add zero-terminator to the delimiter (and make valgrind happy)
2008-07-09 14:15:41 +00:00
Dmitry Stogov
1cfd92fc43
Fixed efree(NULL)
2008-07-09 08:47:05 +00:00
Etienne Kneuss
e53a9ca709
Fix filename/pathname/getpathinfo tests according to SPL fix
2008-07-09 08:39:42 +00:00
Steph Fox
27340e60fc
- Fixed config.w32 to keep Elizabeth happy
...
- NB This whole lot still might disappear, OpenSSL patch review pending
2008-07-07 01:13:14 +00:00
Steph Fox
2c9df0990d
- We forgot to check that the phar exists before trying to extract files from it :)
2008-07-07 01:11:07 +00:00
Steph Fox
5db08e7d1f
Duplicate tests to accommodate parameter parsing fixes in 5_3 core
...
(NB the 5_2 tests will fail currently due to name changes, will fix tomorrow)
2008-07-07 01:09:21 +00:00
Greg Beaver
37c684ab3d
in preparation for a performance optimization that involves
...
eliminating phar's interception of zend_compile in favor of a new to-be-added hook in PHP 5.3+,
allow "include 'phar:///path/to/my.phar';" to work as equivalent to
php /path/to/my.phar
this slight change in scripting still allows inclusion and execution of phar stub, but removes the need to
check and modify path in zend_compile, which allows us to play much nicer with external tools like
debuggers/opcode caches
2008-06-27 01:21:12 +00:00
Greg Beaver
8bf72978b3
fix several issues:
...
1) segfault in phar_buildfromdirectoryiterator8.phpt
2) tests failing because SKIPDOTS is default on 64 bit, not on 32
3) Marcus, you really need to add SKIPDOTS as a class constant, so we don't have to use 0x00001000
2008-06-24 01:11:27 +00:00
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
2008-06-23 19:18:01 +00:00
Steph Fox
019c586191
- Wrong SKIPIF message
2008-06-23 17:48:23 +00:00
Greg Beaver
10f6d9a556
true fix for potential segfault in phar_build
2008-06-23 04:00:23 +00:00
Greg Beaver
fb448c5c28
fix tar-related failures
2008-06-23 03:55:50 +00:00
Steph Fox
c68a82ac7d
- Revert the two blocks of code that implement the phar_build optimization, causes segfaults under *nix
...
- Leave the new structure in place to make re-implementation trivial
2008-06-22 16:35:26 +00:00
Steph Fox
f3844ecd17
- Revert the tar.c part of the inode calculation fix
...
- All tests now pass under win32, please test under *nix/osx (4 known fails at present)
2008-06-22 14:46:10 +00:00
Steph Fox
332a185e08
- ws, typo fix
2008-06-22 13:10:03 +00:00
Greg Beaver
3a8b14f83f
fix inode calculation, we need fname to be set for phar/tar formats prior to manifest parsing
2008-06-22 00:50:32 +00:00
Greg Beaver
0ad165e402
new tests for phar.cache_list
2008-06-22 00:49:54 +00:00
Steph Fox
0e5b3a3527
- Don't free stuff you still need
2008-06-21 21:37:39 +00:00
Steph Fox
35e0565a4b
- Kill a couple of double frees and a memleak
...
@Greg: You may want to run valgrind over the filestat functions before release..
2008-06-21 20:47:35 +00:00
Steph Fox
ad20b9e6bb
- pefree pemalloc'd filename
2008-06-21 20:14:43 +00:00
Steph Fox
22fb73c71e
- Fix macro definition syntax
...
- Remove pre-existing workaround
2008-06-21 19:40:41 +00:00
Steph Fox
f43a2be8cd
- fix for segfault in 5.2 (patch from Greg)
2008-06-21 19:15:46 +00:00
Steph Fox
b964ec6e5d
- ws
2008-06-21 18:57:53 +00:00
Greg Beaver
4b77c2baa5
define ALLOC_PERMANENT_ZVAL for PHP 5.2
2008-06-21 17:05:32 +00:00
Greg Beaver
eb0a98939a
PHP 5.2 fixes to direct include of compressed archives
2008-06-21 17:05:18 +00:00
Greg Beaver
baee4e6028
close stream on failure
2008-06-21 06:55:56 +00:00