]>
granicus.if.org Git - php/log
Lars Strojny [Fri, 2 May 2008 13:06:27 +0000 (13:06 +0000)]
Hard enabling ext/reflection on UNIX too [DOC]
Derick Rethans [Fri, 2 May 2008 12:48:19 +0000 (12:48 +0000)]
- Added DateInterval::createFromDateString() that creates an interval
from the relative parts of a date/time string.
- Fixed an issue where special relative bits were not applied.
#- @DOC
Greg Beaver [Fri, 2 May 2008 05:05:56 +0000 (05:05 +0000)]
refactor isTar/isZip/isPhar into isFileFormat(int format) where format is one of Phar::TAR,, Phar::ZIP, Phar::PHAR
[DOC]
Greg Beaver [Fri, 2 May 2008 04:44:39 +0000 (04:44 +0000)]
update TODO, re-order methods to be alphabetical, tweak extractTo to set permissions and handle NULL for files
# this also matches the docs I just committed :)
<changelog@php.net> [Fri, 2 May 2008 01:31:43 +0000 (01:31 +0000)]
ChangeLog update
Derick Rethans [Thu, 1 May 2008 16:14:29 +0000 (16:14 +0000)]
- Rearranged some structures to allow for more powerfull period/intervals.
Derick Rethans [Thu, 1 May 2008 13:31:00 +0000 (13:31 +0000)]
- Include the starting date by default in the iterator output, but add an
option to disable this behavior.
Ant Phillips [Thu, 1 May 2008 12:36:44 +0000 (12:36 +0000)]
open_basedir tests for directory functions
Ant Phillips [Thu, 1 May 2008 11:46:17 +0000 (11:46 +0000)]
open_basedir tests for directory functions
<changelog@php.net> [Thu, 1 May 2008 01:31:50 +0000 (01:31 +0000)]
ChangeLog update
Derick Rethans [Thu, 1 May 2008 00:10:25 +0000 (00:10 +0000)]
- Added the DatePeriod class/iterator that iterates over a date time object
for a specific number of iterators and applies a DateInterval each time.
Greg Beaver [Wed, 30 Apr 2008 23:49:09 +0000 (23:49 +0000)]
fix possible read past end of buffer by ridiculously stupid convoluted logic (I wrote it, I can call it that) reported by valgrind
Greg Beaver [Wed, 30 Apr 2008 23:44:30 +0000 (23:44 +0000)]
fix unix-only valgrind issue by initializing arch
Greg Beaver [Wed, 30 Apr 2008 23:06:57 +0000 (23:06 +0000)]
fix cwd test in php 5.2, now all tests pass in 5.2 on unix
Greg Beaver [Wed, 30 Apr 2008 23:06:04 +0000 (23:06 +0000)]
fix test to be truly path-agnostic
Greg Beaver [Wed, 30 Apr 2008 22:16:25 +0000 (22:16 +0000)]
fix Bug #13786 on unix (Steph can you verify?)
Greg Beaver [Wed, 30 Apr 2008 22:12:21 +0000 (22:12 +0000)]
fix test (passes in PHP_5_3 on my 64-bit machine, have not yet tested in 5_2)
Greg Beaver [Wed, 30 Apr 2008 22:10:56 +0000 (22:10 +0000)]
add helper file I use for debugging the front controller tests
Greg Beaver [Wed, 30 Apr 2008 22:09:18 +0000 (22:09 +0000)]
add missing file for test
Greg Beaver [Wed, 30 Apr 2008 20:17:27 +0000 (20:17 +0000)]
fix double free
Greg Beaver [Wed, 30 Apr 2008 20:14:54 +0000 (20:14 +0000)]
stupid cut/paste error
Greg Beaver [Wed, 30 Apr 2008 20:14:15 +0000 (20:14 +0000)]
increase code coverage to test cwd stuffs
Ant Phillips [Wed, 30 Apr 2008 15:20:17 +0000 (15:20 +0000)]
Fix session test failures as reported by Antony Dovgal.
These were caused by the tests assuming default values for some session
configuration settings, in particular session.save_path and session.name.
The tests now explicitly set these settings in the --INI-- section.
Ant Phillips [Wed, 30 Apr 2008 13:53:50 +0000 (13:53 +0000)]
Break up complicated rename tests into some smaller more consumable chunks
Dmitry Stogov [Wed, 30 Apr 2008 10:44:24 +0000 (10:44 +0000)]
IS_CONST operands are always have is_ref==1 and refcount==2, so we can eliminate
unnecessary checks at specialization/compilation stage
Ant Phillips [Wed, 30 Apr 2008 09:28:00 +0000 (09:28 +0000)]
Fix session test failures as reported by Antony Dovgal.
These were caused by the tests assuming default values for some session
configuration settings, in particular session.save_path and session.name.
The tests now explicitly set these settings in the --INI-- section.
Greg Beaver [Wed, 30 Apr 2008 02:20:48 +0000 (02:20 +0000)]
remove unneeded exception handling (webPhar is always within an outer zend_execute block which handles exceptions for us, this is unnecessary)
<changelog@php.net> [Wed, 30 Apr 2008 01:32:01 +0000 (01:32 +0000)]
ChangeLog update
Antony Dovgal [Tue, 29 Apr 2008 13:50:22 +0000 (13:50 +0000)]
fix spelling
Dmitry Stogov [Tue, 29 Apr 2008 13:43:49 +0000 (13:43 +0000)]
Fixed GC slowdown
Steph Fox [Tue, 29 Apr 2008 12:26:58 +0000 (12:26 +0000)]
- Allow setStub() to continue working
- Fix tests broken by earlier commit
Steph Fox [Tue, 29 Apr 2008 12:06:54 +0000 (12:06 +0000)]
- 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.
Steph Fox [Tue, 29 Apr 2008 11:37:33 +0000 (11:37 +0000)]
- Fix paths in test
Steph Fox [Tue, 29 Apr 2008 10:45:23 +0000 (10:45 +0000)]
- Add test for bug #13786
Ant Phillips [Tue, 29 Apr 2008 09:24:18 +0000 (09:24 +0000)]
More session tests to improve code coverage for untested extension code
Dmitry Stogov [Tue, 29 Apr 2008 09:18:54 +0000 (09:18 +0000)]
Added missing lazy initialization
Ant Phillips [Tue, 29 Apr 2008 08:57:10 +0000 (08:57 +0000)]
More session tests to improve code coverage for untested extension code
Dmitry Stogov [Tue, 29 Apr 2008 08:15:49 +0000 (08:15 +0000)]
Lazy EG(active_symbol_table) initialization
Antony Dovgal [Tue, 29 Apr 2008 08:08:10 +0000 (08:08 +0000)]
lexer fix by Greg
Antony Dovgal [Tue, 29 Apr 2008 08:04:11 +0000 (08:04 +0000)]
cosmetic enhancements
Antony Dovgal [Tue, 29 Apr 2008 07:26:39 +0000 (07:26 +0000)]
fix test
<changelog@php.net> [Tue, 29 Apr 2008 01:31:45 +0000 (01:31 +0000)]
ChangeLog update
Greg Beaver [Mon, 28 Apr 2008 23:00:46 +0000 (23:00 +0000)]
fix segfault (now all tests pass here)
Greg Beaver [Mon, 28 Apr 2008 22:57:21 +0000 (22:57 +0000)]
fix double free and broken stat.phpt
Greg Beaver [Mon, 28 Apr 2008 22:41:20 +0000 (22:41 +0000)]
remove hack introduced because of broken usage of php_resolve_path instead of zend_resolve_path
Greg Beaver [Mon, 28 Apr 2008 22:40:10 +0000 (22:40 +0000)]
MFB: fix erroneous use of php_resolve_path in _php_stream_wrapper_open_ex - this breaks require/include for all extensions that intercept zend_resolve_path
Greg Beaver [Mon, 28 Apr 2008 22:37:45 +0000 (22:37 +0000)]
MFB: Fixed potentially confusing error message on failure when no errors are logged
Greg Beaver [Mon, 28 Apr 2008 22:32:15 +0000 (22:32 +0000)]
it's a bit cheesy, but make this test 5.2/5.3 agnostic :)
Greg Beaver [Mon, 28 Apr 2008 16:44:53 +0000 (16:44 +0000)]
fix tar generation - we were subtly corrupting the header with \0 because of use of strcpy
Scott MacVicar [Mon, 28 Apr 2008 13:26:50 +0000 (13:26 +0000)]
MFH: Fix windows build
Scott MacVicar [Mon, 28 Apr 2008 10:02:10 +0000 (10:02 +0000)]
The SDK 6.1 adds some new networking functions that cause build errors, pick Windows 2000 as the minimum version we will build for.
Greg Beaver [Mon, 28 Apr 2008 06:49:56 +0000 (06:49 +0000)]
fix off-by-one for writing of timestamp and file modes in tar files
Greg Beaver [Mon, 28 Apr 2008 06:03:33 +0000 (06:03 +0000)]
more fixes for PHAR_G(cwd)
Greg Beaver [Mon, 28 Apr 2008 04:38:07 +0000 (04:38 +0000)]
fix crash (this area really needs code coverage)
<changelog@php.net> [Mon, 28 Apr 2008 01:31:41 +0000 (01:31 +0000)]
ChangeLog update
Greg Beaver [Sun, 27 Apr 2008 23:59:41 +0000 (23:59 +0000)]
add open_basedir/safe_mode checks for files in Phar::addFile()
Greg Beaver [Sun, 27 Apr 2008 23:59:14 +0000 (23:59 +0000)]
fix test
Derick Rethans [Sun, 27 Apr 2008 19:12:10 +0000 (19:12 +0000)]
- Fixed "this week", "previous week"/"last week" and "next week" phrases by
actually meaning the week.
#- For now the week starts on Monday, but I plan on making that configurable.
Steph Fox [Sun, 27 Apr 2008 16:42:03 +0000 (16:42 +0000)]
- Kill another one from the gcov site's parameter parsing report
Steph Fox [Sun, 27 Apr 2008 12:22:36 +0000 (12:22 +0000)]
- Another test that gives completely different results if readonly=0
Steph Fox [Sun, 27 Apr 2008 11:36:22 +0000 (11:36 +0000)]
- Deleting files we cannot see...
Steph Fox [Sun, 27 Apr 2008 11:31:27 +0000 (11:31 +0000)]
- Fix a couple of failing tests/bad cleanup
@Greg: the phpinfo() ones assumed no php.ini - this isn't always the case, even if it should be
Steph Fox [Sun, 27 Apr 2008 11:26:15 +0000 (11:26 +0000)]
- Make it possible to extract all *and* overwrite
Steph Fox [Sun, 27 Apr 2008 10:18:35 +0000 (10:18 +0000)]
- Always give reasons for skipped tests
Steph Fox [Sun, 27 Apr 2008 10:14:00 +0000 (10:14 +0000)]
- Kill a few uninitialized vars (thanks gcov)
Greg Beaver [Sun, 27 Apr 2008 07:20:02 +0000 (07:20 +0000)]
fix out-of-bounds read potential by replacing strstr with a custom strnstr
Greg Beaver [Sun, 27 Apr 2008 07:04:56 +0000 (07:04 +0000)]
fix invalid free
Greg Beaver [Sat, 26 Apr 2008 23:16:49 +0000 (23:16 +0000)]
fix APC compile hook interception, now APC actually caches files
Greg Beaver [Sat, 26 Apr 2008 23:02:51 +0000 (23:02 +0000)]
fix ridiculously critical omission in zip flush - we never set compressed file size! Augment zip test for bz2/zlib-compressed alias files to increase code coverage
Greg Beaver [Sat, 26 Apr 2008 22:31:44 +0000 (22:31 +0000)]
add checking for invalid alias on opening tar, and test
Greg Beaver [Sat, 26 Apr 2008 22:04:04 +0000 (22:04 +0000)]
add screening of alias to reading of zip archives, and test for bad aliases
Greg Beaver [Sat, 26 Apr 2008 17:47:31 +0000 (17:47 +0000)]
new test/updated test to ensure stub integrity (I was wrong, zip is fine)
Greg Beaver [Sat, 26 Apr 2008 17:43:53 +0000 (17:43 +0000)]
add logic test to ensure stub is not overwritten when adding a file (zip currently does this - bad zip)
Greg Beaver [Sat, 26 Apr 2008 17:34:14 +0000 (17:34 +0000)]
increase code coverage
Greg Beaver [Sat, 26 Apr 2008 17:32:18 +0000 (17:32 +0000)]
really fix test by fixing the regex
Greg Beaver [Sat, 26 Apr 2008 17:29:55 +0000 (17:29 +0000)]
increase code coverage (and magically, mysteriously this tests passes with no other changes - weird)
Greg Beaver [Sat, 26 Apr 2008 17:28:28 +0000 (17:28 +0000)]
fix clean
Greg Beaver [Sat, 26 Apr 2008 17:27:47 +0000 (17:27 +0000)]
increase code coverage
Greg Beaver [Sat, 26 Apr 2008 17:20:50 +0000 (17:20 +0000)]
new test increases code coverage
Greg Beaver [Sat, 26 Apr 2008 17:18:15 +0000 (17:18 +0000)]
add failing portion of test for compressed alias read
Greg Beaver [Sat, 26 Apr 2008 17:14:27 +0000 (17:14 +0000)]
add failing portion of test for bz2 compressed file on open
Greg Beaver [Sat, 26 Apr 2008 17:09:58 +0000 (17:09 +0000)]
fix buildfromiterator base to exclude directory separator on unix or windows, fix 10 test to have new tests
Greg Beaver [Sat, 26 Apr 2008 16:57:14 +0000 (16:57 +0000)]
fix cleanup
Steph Fox [Sat, 26 Apr 2008 13:22:38 +0000 (13:22 +0000)]
- Added a RecursiveIterator/buildFromIterator test
- Fixed up bug13727.phpt to take < 15 minutes :\\ and clean up after itself
- Cleaned up protos/reflection data
- Added myself to package.xml credits
Greg Beaver [Sat, 26 Apr 2008 05:31:00 +0000 (05:31 +0000)]
add Phar::extractTo(dest_directory[, mixed files[, bool overwrite]])
this is very similar to ext/zip's extractTo and is based on that code, with the addition of the third parameter, which
is used to allow overwriting existing files (disallowed by default, unlike ext/zip's implementation)
[DOC]
Greg Beaver [Sat, 26 Apr 2008 05:28:56 +0000 (05:28 +0000)]
finish code coverage work (whew)
Steph Fox [Sat, 26 Apr 2008 02:04:09 +0000 (02:04 +0000)]
- cs
Steph Fox [Sat, 26 Apr 2008 01:52:22 +0000 (01:52 +0000)]
- fixed those pesky memleaks
<changelog@php.net> [Sat, 26 Apr 2008 01:31:39 +0000 (01:31 +0000)]
ChangeLog update
Steph Fox [Fri, 25 Apr 2008 21:37:41 +0000 (21:37 +0000)]
- implemented Phar::buildFromDirectory
@Greg: There are two (identical) recurring memleaks I can't seem to kill, both marked FIXME. Would you please take a look?
[DOC] $phar->buildFromDirectory(dirname[, regex]). Return value is an array pairing each file in the archive index with the original path on the filesystem.
Greg Beaver [Fri, 25 Apr 2008 16:54:37 +0000 (16:54 +0000)]
make dang sure this ridiculous test cleans up after itself
Greg Beaver [Fri, 25 Apr 2008 16:50:22 +0000 (16:50 +0000)]
add test for bug #13727, fix bug #13727
Greg Beaver [Fri, 25 Apr 2008 16:10:59 +0000 (16:10 +0000)]
finish code coverage testing of phar_object.c (except for iterator building, which Steph is doing) and fix segfault in error message for directory getcontent if it is a temp directory
Greg Beaver [Fri, 25 Apr 2008 16:05:05 +0000 (16:05 +0000)]
new test with code coverage for PharFileInfo::setMetadata/delMetadata, improve error messages
Greg Beaver [Fri, 25 Apr 2008 15:56:20 +0000 (15:56 +0000)]
remove unneeded skipif conditions
Greg Beaver [Fri, 25 Apr 2008 15:53:02 +0000 (15:53 +0000)]
new code coverage test, improve clarity of error message when chmod is used on a temp directory
Derick Rethans [Fri, 25 Apr 2008 12:55:16 +0000 (12:55 +0000)]
- MF53: Added new date/time functionality:
. support for diffing date/times through date_diff() / DateTime::diff().
. added DateInterval class to represent the difference between two date/times.
. support for parsing ISO intervals for use with DateInterval.
. date_add() / DateTime::add(), date_sub() / DateTime::sub() for applying an
interval to an existing date/time.
Greg Beaver [Fri, 25 Apr 2008 04:35:10 +0000 (04:35 +0000)]
fix potentially serious security issue: buffer overrun if the tar filename > 101 characters in length. This fixes tests/tar/bignames.phpt
Greg Beaver [Fri, 25 Apr 2008 04:34:03 +0000 (04:34 +0000)]
fix access fault on windows, fix memleak on all platforms when accessing a temp directory via offsetGet
Greg Beaver [Fri, 25 Apr 2008 04:31:44 +0000 (04:31 +0000)]
fix tests on windows