Commit Graph

415 Commits

Author SHA1 Message Date
Felipe Pena
d90a33d51c - Year++ 2011-01-01 02:46:03 +00:00
Kalle Sommer Nielsen
701bfaa2fa Added second fix from #50987 that wasn't apart of Ilia's commit 2010-11-20 20:59:28 +00:00
Ilia Alshanetsky
3016ad46ae Fixed bug #50987 (unaligned memory access in phar.c) 2010-11-20 19:27:31 +00:00
Ilia Alshanetsky
676a8338a1 Fixed bug #51690 (Phar::setStub looks for case-sensitive __HALT_COMPILER()) 2010-05-03 14:41:40 +00:00
Hannes Magnusson
8ba86768e7 - Unifiy that message
- Mention php.ini
2010-04-27 08:23:25 +00:00
Kalle Sommer Nielsen
dd8e59da8f Removed safe_mode
* Removed ini options, safe_mode*
 * Removed --enable-safe-mode --with-exec-dir configure options on Unix
 * Updated extensions, SAPI's and core
 * php_get_current_user() is now declared in main.c, thrus no need to include safe_mode.h anymore
2010-04-26 23:53:30 +00:00
Hannes Magnusson
b25baf178d mention which setting! 2010-04-25 18:55:06 +00:00
Dmitry Stogov
dd5c478be6 Added concept of interned strings. All strings constants known at compile time are allocated in a single copy and never changed. 2010-04-20 11:05:54 +00:00
Johannes Schlüter
26b08f9857 Remove main/php3_compat.h, for that a few references to function_entry have
to be replaced by `zend_function_entry`.
2010-03-30 23:03:02 +00:00
Rasmus Lerdorf
c06ac0ac8e Fix bug #50129 2009-11-09 17:21:15 +00:00
Jani Taskinen
6b85ff3057 - It is not const in PHP_5_2 but it is in HEAD and PHP_5_3 2009-10-19 15:34:50 +00:00
Greg Beaver
9a677532db re-organize slightly, fix more php6-only compile warnings in php_stream_copy_to_mem 2009-07-26 01:03:47 +00:00
Greg Beaver
d39fda5ff7 begin work on making phar php6-ready 2009-07-24 23:53:24 +00:00
Greg Beaver
c92396a82c merge unmerged changes between branches, remove unnecessary test for zip signature failure in badparameters.phpt 2009-07-24 17:07:05 +00:00
Greg Beaver
651f5c0cef fix PHP bug #48791: open office files always reported as corrupted 2009-07-23 16:30:27 +00:00
Greg Beaver
5af0cbef65 MFB: fix Bug #48257: PharData throws exception with non-phar tar 2009-05-13 20:26:18 +00:00
Antony Dovgal
4838847f5d initialize ext_len 2009-05-01 09:22:02 +00:00
Greg Beaver
db7dc95d15 MFPECL: fixed PECL Bug #14646: phar error message unclear with php stream wrappers 2009-04-30 04:40:31 +00:00
Greg Beaver
31f3c2ad47 MFPECL: fix PECL bug #16338, php_stream_copy_to_stream{,_ex}() 2009-04-29 03:24:09 +00:00
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