]> granicus.if.org Git - php/log
php
16 years agoHard enabling ext/reflection on UNIX too [DOC]
Lars Strojny [Fri, 2 May 2008 13:06:27 +0000 (13:06 +0000)]
Hard enabling ext/reflection on UNIX too [DOC]

16 years ago- Added DateInterval::createFromDateString() that creates an interval
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

16 years agorefactor isTar/isZip/isPhar into isFileFormat(int format) where format is one of...
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]

16 years agoupdate TODO, re-order methods to be alphabetical, tweak extractTo to set permissions...
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 :)

16 years agoChangeLog update
<changelog@php.net> [Fri, 2 May 2008 01:31:43 +0000 (01:31 +0000)]
ChangeLog update

16 years ago- Rearranged some structures to allow for more powerfull period/intervals.
Derick Rethans [Thu, 1 May 2008 16:14:29 +0000 (16:14 +0000)]
- Rearranged some structures to allow for more powerfull period/intervals.

16 years ago- Include the starting date by default in the iterator output, but add an
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.

16 years agoopen_basedir tests for directory functions
Ant Phillips [Thu, 1 May 2008 12:36:44 +0000 (12:36 +0000)]
open_basedir tests for directory functions

16 years agoopen_basedir tests for directory functions
Ant Phillips [Thu, 1 May 2008 11:46:17 +0000 (11:46 +0000)]
open_basedir tests for directory functions

16 years agoChangeLog update
<changelog@php.net> [Thu, 1 May 2008 01:31:50 +0000 (01:31 +0000)]
ChangeLog update

16 years ago- Added the DatePeriod class/iterator that iterates over a date time object
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.

16 years agofix possible read past end of buffer by ridiculously stupid convoluted logic (I wrote...
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

16 years agofix unix-only valgrind issue by initializing arch
Greg Beaver [Wed, 30 Apr 2008 23:44:30 +0000 (23:44 +0000)]
fix unix-only valgrind issue by initializing arch

16 years agofix cwd test in php 5.2, now all tests pass in 5.2 on unix
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

16 years agofix test to be truly path-agnostic
Greg Beaver [Wed, 30 Apr 2008 23:06:04 +0000 (23:06 +0000)]
fix test to be truly path-agnostic

16 years agofix Bug #13786 on unix (Steph can you verify?)
Greg Beaver [Wed, 30 Apr 2008 22:16:25 +0000 (22:16 +0000)]
fix Bug #13786 on unix (Steph can you verify?)

16 years agofix 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: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)

16 years agoadd helper file I use for debugging the front controller tests
Greg Beaver [Wed, 30 Apr 2008 22:10:56 +0000 (22:10 +0000)]
add helper file I use for debugging the front controller tests

16 years agoadd missing file for test
Greg Beaver [Wed, 30 Apr 2008 22:09:18 +0000 (22:09 +0000)]
add missing file for test

16 years agofix double free
Greg Beaver [Wed, 30 Apr 2008 20:17:27 +0000 (20:17 +0000)]
fix double free

16 years agostupid cut/paste error
Greg Beaver [Wed, 30 Apr 2008 20:14:54 +0000 (20:14 +0000)]
stupid cut/paste error

16 years agoincrease code coverage to test cwd stuffs
Greg Beaver [Wed, 30 Apr 2008 20:14:15 +0000 (20:14 +0000)]
increase code coverage to test cwd stuffs

16 years agoFix session test failures as reported by Antony Dovgal.
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.

16 years agoBreak up complicated rename tests into some smaller more consumable chunks
Ant Phillips [Wed, 30 Apr 2008 13:53:50 +0000 (13:53 +0000)]
Break up complicated rename tests into some smaller more consumable chunks

16 years agoIS_CONST operands are always have is_ref==1 and refcount==2, so we can eliminate
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

16 years agoFix session test failures as reported by Antony Dovgal.
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.

16 years agoremove unneeded exception handling (webPhar is always within an outer zend_execute...
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)

16 years agoChangeLog update
<changelog@php.net> [Wed, 30 Apr 2008 01:32:01 +0000 (01:32 +0000)]
ChangeLog update

16 years agofix spelling
Antony Dovgal [Tue, 29 Apr 2008 13:50:22 +0000 (13:50 +0000)]
fix spelling

16 years agoFixed GC slowdown
Dmitry Stogov [Tue, 29 Apr 2008 13:43:49 +0000 (13:43 +0000)]
Fixed GC slowdown

16 years ago- Allow setStub() to continue working
Steph Fox [Tue, 29 Apr 2008 12:26:58 +0000 (12:26 +0000)]
- Allow setStub() to continue working
- Fix tests broken by earlier commit

16 years ago- Prevent phars with empty manifests flushing to disk
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.

16 years ago- Fix paths in test
Steph Fox [Tue, 29 Apr 2008 11:37:33 +0000 (11:37 +0000)]
- Fix paths in test

16 years ago- Add test for bug #13786
Steph Fox [Tue, 29 Apr 2008 10:45:23 +0000 (10:45 +0000)]
- Add test for bug #13786

16 years agoMore session tests to improve code coverage for untested extension code
Ant Phillips [Tue, 29 Apr 2008 09:24:18 +0000 (09:24 +0000)]
More session tests to improve code coverage for untested extension code

16 years agoAdded missing lazy initialization
Dmitry Stogov [Tue, 29 Apr 2008 09:18:54 +0000 (09:18 +0000)]
Added missing lazy initialization

16 years agoMore session tests to improve code coverage for untested extension code
Ant Phillips [Tue, 29 Apr 2008 08:57:10 +0000 (08:57 +0000)]
More session tests to improve code coverage for untested extension code

16 years agoLazy EG(active_symbol_table) initialization
Dmitry Stogov [Tue, 29 Apr 2008 08:15:49 +0000 (08:15 +0000)]
Lazy EG(active_symbol_table) initialization

16 years agolexer fix by Greg
Antony Dovgal [Tue, 29 Apr 2008 08:08:10 +0000 (08:08 +0000)]
lexer fix by Greg

16 years agocosmetic enhancements
Antony Dovgal [Tue, 29 Apr 2008 08:04:11 +0000 (08:04 +0000)]
cosmetic enhancements

16 years agofix test
Antony Dovgal [Tue, 29 Apr 2008 07:26:39 +0000 (07:26 +0000)]
fix test

16 years agoChangeLog update
<changelog@php.net> [Tue, 29 Apr 2008 01:31:45 +0000 (01:31 +0000)]
ChangeLog update

16 years agofix segfault (now all tests pass here)
Greg Beaver [Mon, 28 Apr 2008 23:00:46 +0000 (23:00 +0000)]
fix segfault (now all tests pass here)

16 years agofix double free and broken stat.phpt
Greg Beaver [Mon, 28 Apr 2008 22:57:21 +0000 (22:57 +0000)]
fix double free and broken stat.phpt

16 years agoremove hack introduced because of broken usage of php_resolve_path instead of zend_re...
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

16 years agoMFB: fix erroneous use of php_resolve_path in _php_stream_wrapper_open_ex - this...
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

16 years agoMFB: Fixed potentially confusing error message on failure when no errors are logged
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

16 years agoit's a bit cheesy, but make this test 5.2/5.3 agnostic :)
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 :)

16 years agofix tar generation - we were subtly corrupting the header with \0 because of use...
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

16 years agoMFH: Fix windows build
Scott MacVicar [Mon, 28 Apr 2008 13:26:50 +0000 (13:26 +0000)]
MFH: Fix windows build

16 years agoThe SDK 6.1 adds some new networking functions that cause build errors, pick Windows...
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.

16 years agofix off-by-one for writing of timestamp and file modes in tar files
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

16 years agomore fixes for PHAR_G(cwd)
Greg Beaver [Mon, 28 Apr 2008 06:03:33 +0000 (06:03 +0000)]
more fixes for PHAR_G(cwd)

16 years agofix crash (this area really needs code coverage)
Greg Beaver [Mon, 28 Apr 2008 04:38:07 +0000 (04:38 +0000)]
fix crash (this area really needs code coverage)

16 years agoChangeLog update
<changelog@php.net> [Mon, 28 Apr 2008 01:31:41 +0000 (01:31 +0000)]
ChangeLog update

16 years agoadd open_basedir/safe_mode checks for files in Phar::addFile()
Greg Beaver [Sun, 27 Apr 2008 23:59:41 +0000 (23:59 +0000)]
add open_basedir/safe_mode checks for files in Phar::addFile()

16 years agofix test
Greg Beaver [Sun, 27 Apr 2008 23:59:14 +0000 (23:59 +0000)]
fix test

16 years ago- Fixed "this week", "previous week"/"last week" and "next week" phrases by
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.

16 years ago- Kill another one from the gcov site's parameter parsing report
Steph Fox [Sun, 27 Apr 2008 16:42:03 +0000 (16:42 +0000)]
- Kill another one from the gcov site's parameter parsing report

16 years ago- Another test that gives completely different results if readonly=0
Steph Fox [Sun, 27 Apr 2008 12:22:36 +0000 (12:22 +0000)]
- Another test that gives completely different results if readonly=0

16 years ago- Deleting files we cannot see...
Steph Fox [Sun, 27 Apr 2008 11:36:22 +0000 (11:36 +0000)]
- Deleting files we cannot see...

16 years ago- Fix a couple of failing tests/bad cleanup
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

16 years ago- Make it possible to extract all *and* overwrite
Steph Fox [Sun, 27 Apr 2008 11:26:15 +0000 (11:26 +0000)]
- Make it possible to extract all *and* overwrite

16 years ago- Always give reasons for skipped tests
Steph Fox [Sun, 27 Apr 2008 10:18:35 +0000 (10:18 +0000)]
- Always give reasons for skipped tests

16 years ago- Kill a few uninitialized vars (thanks gcov)
Steph Fox [Sun, 27 Apr 2008 10:14:00 +0000 (10:14 +0000)]
- Kill a few uninitialized vars (thanks gcov)

16 years agofix out-of-bounds read potential by replacing strstr with a custom strnstr
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

16 years agofix invalid free
Greg Beaver [Sun, 27 Apr 2008 07:04:56 +0000 (07:04 +0000)]
fix invalid free

16 years agofix APC compile hook interception, now APC actually caches files
Greg Beaver [Sat, 26 Apr 2008 23:16:49 +0000 (23:16 +0000)]
fix APC compile hook interception, now APC actually caches files

16 years agofix ridiculously critical omission in zip flush - we never set compressed file size...
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

16 years agoadd checking for invalid alias on opening tar, and test
Greg Beaver [Sat, 26 Apr 2008 22:31:44 +0000 (22:31 +0000)]
add checking for invalid alias on opening tar, and test

16 years agoadd screening of alias to reading of zip archives, and test for bad aliases
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

16 years agonew test/updated test to ensure stub integrity (I was wrong, zip is fine)
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)

16 years agoadd logic test to ensure stub is not overwritten when adding a file (zip currently...
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)

16 years agoincrease code coverage
Greg Beaver [Sat, 26 Apr 2008 17:34:14 +0000 (17:34 +0000)]
increase code coverage

16 years agoreally fix test by fixing the regex
Greg Beaver [Sat, 26 Apr 2008 17:32:18 +0000 (17:32 +0000)]
really fix test by fixing the regex

16 years agoincrease code coverage (and magically, mysteriously this tests passes with no other...
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)

16 years agofix clean
Greg Beaver [Sat, 26 Apr 2008 17:28:28 +0000 (17:28 +0000)]
fix clean

16 years agoincrease code coverage
Greg Beaver [Sat, 26 Apr 2008 17:27:47 +0000 (17:27 +0000)]
increase code coverage

16 years agonew test increases code coverage
Greg Beaver [Sat, 26 Apr 2008 17:20:50 +0000 (17:20 +0000)]
new test increases code coverage

16 years agoadd failing portion of test for compressed alias read
Greg Beaver [Sat, 26 Apr 2008 17:18:15 +0000 (17:18 +0000)]
add failing portion of test for compressed alias read

16 years agoadd failing portion of test for bz2 compressed file on open
Greg Beaver [Sat, 26 Apr 2008 17:14:27 +0000 (17:14 +0000)]
add failing portion of test for bz2 compressed file on open

16 years agofix buildfromiterator base to exclude directory separator on unix or windows, fix...
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

16 years agofix cleanup
Greg Beaver [Sat, 26 Apr 2008 16:57:14 +0000 (16:57 +0000)]
fix cleanup

16 years ago- Added a RecursiveIterator/buildFromIterator test
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

16 years agoadd Phar::extractTo(dest_directory[, mixed files[, bool overwrite]])
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]

16 years agofinish code coverage work (whew)
Greg Beaver [Sat, 26 Apr 2008 05:28:56 +0000 (05:28 +0000)]
finish code coverage work (whew)

16 years ago- cs
Steph Fox [Sat, 26 Apr 2008 02:04:09 +0000 (02:04 +0000)]
- cs

16 years ago- fixed those pesky memleaks
Steph Fox [Sat, 26 Apr 2008 01:52:22 +0000 (01:52 +0000)]
- fixed those pesky memleaks

16 years agoChangeLog update
<changelog@php.net> [Sat, 26 Apr 2008 01:31:39 +0000 (01:31 +0000)]
ChangeLog update

16 years ago- implemented Phar::buildFromDirectory
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.

16 years agomake dang sure this ridiculous test cleans up after itself
Greg Beaver [Fri, 25 Apr 2008 16:54:37 +0000 (16:54 +0000)]
make dang sure this ridiculous test cleans up after itself

16 years agoadd test for bug #13727, fix bug #13727
Greg Beaver [Fri, 25 Apr 2008 16:50:22 +0000 (16:50 +0000)]
add test for bug #13727, fix bug #13727

16 years agofinish code coverage testing of phar_object.c (except for iterator building, which...
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

16 years agonew test with code coverage for PharFileInfo::setMetadata/delMetadata, improve error...
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

16 years agoremove unneeded skipif conditions
Greg Beaver [Fri, 25 Apr 2008 15:56:20 +0000 (15:56 +0000)]
remove unneeded skipif conditions

16 years agonew code coverage test, improve clarity of error message when chmod is used on a...
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

16 years ago- MF53: Added new date/time functionality:
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.

16 years agofix potentially serious security issue: buffer overrun if the tar filename > 101...
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

16 years agofix access fault on windows, fix memleak on all platforms when accessing a temp direc...
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

16 years agofix tests on windows
Greg Beaver [Fri, 25 Apr 2008 04:31:44 +0000 (04:31 +0000)]
fix tests on windows