]> granicus.if.org Git - php/log
php
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

16 years agoadd missing file (Steph: this fixes tests/tar/truncated.phpt, sorry :)
Greg Beaver [Fri, 25 Apr 2008 04:29:08 +0000 (04:29 +0000)]
add missing file (Steph: this fixes tests/tar/truncated.phpt, sorry :)

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

16 years agofix test (except for memleaks)
Greg Beaver [Thu, 24 Apr 2008 20:02:04 +0000 (20:02 +0000)]
fix test (except for memleaks)

16 years agorework PharFileInfo->decompress and add failing test
Greg Beaver [Thu, 24 Apr 2008 19:57:22 +0000 (19:57 +0000)]
rework PharFileInfo->decompress and add failing test

16 years agonew test
Greg Beaver [Thu, 24 Apr 2008 17:25:23 +0000 (17:25 +0000)]
new test

16 years agonew test for PharFileInfo::__destruct
Greg Beaver [Thu, 24 Apr 2008 17:19:01 +0000 (17:19 +0000)]
new test for PharFileInfo::__destruct

16 years ago- clean the right file :)
Steph Fox [Thu, 24 Apr 2008 17:02:27 +0000 (17:02 +0000)]
- clean the right file :)

16 years ago- kill a couple of (release build) MS compiler warnings
Steph Fox [Thu, 24 Apr 2008 16:59:23 +0000 (16:59 +0000)]
- kill a couple of (release build) MS compiler warnings

16 years agoExtra open_basedir tests
Ant Phillips [Thu, 24 Apr 2008 16:40:55 +0000 (16:40 +0000)]
Extra open_basedir tests

16 years ago- Removed unused variables
Felipe Pena [Thu, 24 Apr 2008 16:15:33 +0000 (16:15 +0000)]
- Removed unused variables

16 years ago- Fix Windows build
Steph Fox [Thu, 24 Apr 2008 16:03:40 +0000 (16:03 +0000)]
- Fix Windows build

16 years agoOptimized handlers for ZEND_RECV and ZEND_RECV_INIT opocdes
Dmitry Stogov [Thu, 24 Apr 2008 15:46:28 +0000 (15:46 +0000)]
Optimized handlers for ZEND_RECV and ZEND_RECV_INIT opocdes

16 years agoUpdate ext/mysql's and ext/mysqli's tests
Andrey Hristov [Thu, 24 Apr 2008 14:04:58 +0000 (14:04 +0000)]
Update ext/mysql's and ext/mysqli's tests
Add mysqli_stmt_more_result()/mysqli_stmt_next_result(), but only in
mysqlnd builds as libmysql doesn't support this feature.

16 years agoAllow for chmod() to fail on symbolic links
Ant Phillips [Thu, 24 Apr 2008 13:58:27 +0000 (13:58 +0000)]
Allow for chmod() to fail on symbolic links

16 years ago- improve test and remove files on exit
Pierre Joye [Thu, 24 Apr 2008 08:45:11 +0000 (08:45 +0000)]
- improve test and remove files on exit

16 years agoFixed bug #44805 (rename() function is not portable to Windows). (Pierre)
Dmitry Stogov [Thu, 24 Apr 2008 07:46:10 +0000 (07:46 +0000)]
Fixed bug #44805 (rename() function is not portable to Windows). (Pierre)

16 years agotest PharFileInfo::__construct, fix potential segfault, and bad logic in phar detection
Greg Beaver [Thu, 24 Apr 2008 05:18:50 +0000 (05:18 +0000)]
test PharFileInfo::__construct, fix potential segfault, and bad logic in phar detection

16 years agoincrease code coverage
Greg Beaver [Thu, 24 Apr 2008 05:03:12 +0000 (05:03 +0000)]
increase code coverage

16 years agofix break when uncompressed files are re-saved, fixes phar_copy.phpt test
Greg Beaver [Thu, 24 Apr 2008 04:56:22 +0000 (04:56 +0000)]
fix break when uncompressed files are re-saved, fixes phar_copy.phpt test

16 years agoremove redundant unreachable code in Phar::copy, augment test, and add failing condit...
Greg Beaver [Thu, 24 Apr 2008 04:14:05 +0000 (04:14 +0000)]
remove redundant unreachable code in Phar::copy, augment test, and add failing condition that needs to be fixed

16 years agonew test for Phar::decompress()
Greg Beaver [Thu, 24 Apr 2008 04:05:20 +0000 (04:05 +0000)]
new test for Phar::decompress()

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

16 years agoincrease code coverage
Greg Beaver [Wed, 23 Apr 2008 19:01:52 +0000 (19:01 +0000)]
increase code coverage

16 years agoincrease code coverage
Greg Beaver [Wed, 23 Apr 2008 19:00:42 +0000 (19:00 +0000)]
increase code coverage

16 years agoincrease code coverage
Greg Beaver [Wed, 23 Apr 2008 18:59:41 +0000 (18:59 +0000)]
increase code coverage

16 years agoincrease code coverage, fix minor memleak
Greg Beaver [Wed, 23 Apr 2008 18:54:09 +0000 (18:54 +0000)]
increase code coverage, fix minor memleak

16 years agoincrease code coverage
Greg Beaver [Wed, 23 Apr 2008 18:46:48 +0000 (18:46 +0000)]
increase code coverage

16 years agoincrease code coverage
Greg Beaver [Wed, 23 Apr 2008 18:46:21 +0000 (18:46 +0000)]
increase code coverage

16 years agoincrease code coverage
Greg Beaver [Wed, 23 Apr 2008 18:45:42 +0000 (18:45 +0000)]
increase code coverage

16 years agofix default format conversion, increase code coverage
Greg Beaver [Wed, 23 Apr 2008 18:44:43 +0000 (18:44 +0000)]
fix default format conversion, increase code coverage

16 years agoincrease code coverage slightly
Greg Beaver [Wed, 23 Apr 2008 18:32:59 +0000 (18:32 +0000)]
increase code coverage slightly

16 years agonew test increases code coverage, fix memleak found by test
Greg Beaver [Wed, 23 Apr 2008 18:30:53 +0000 (18:30 +0000)]
new test increases code coverage, fix memleak found by test

16 years agoincrease code coverage
Greg Beaver [Wed, 23 Apr 2008 18:22:55 +0000 (18:22 +0000)]
increase code coverage

16 years agofix extension detection for executable=2
Greg Beaver [Wed, 23 Apr 2008 18:22:09 +0000 (18:22 +0000)]
fix extension detection for executable=2

16 years agonew test for Phar::isValidPharFilename. Fix Phar::isValidPharFilename. Fix extensio...
Greg Beaver [Wed, 23 Apr 2008 18:11:20 +0000 (18:11 +0000)]
new test for Phar::isValidPharFilename.  Fix Phar::isValidPharFilename.  Fix extension detection for all cases

16 years agonew test for Phar::loadPhar with phar.extract_list
Greg Beaver [Wed, 23 Apr 2008 17:27:31 +0000 (17:27 +0000)]
new test for Phar::loadPhar with phar.extract_list

16 years agonew test for Phar::mapPhar with phar.extract_list
Greg Beaver [Wed, 23 Apr 2008 17:25:52 +0000 (17:25 +0000)]
new test for Phar::mapPhar with phar.extract_list

16 years agoremove/move unreachable code
Greg Beaver [Wed, 23 Apr 2008 17:23:32 +0000 (17:23 +0000)]
remove/move unreachable code

16 years agoimprove rewrite callback support, add test for callback that does not return string...
Greg Beaver [Wed, 23 Apr 2008 17:18:28 +0000 (17:18 +0000)]
improve rewrite callback support, add test for callback that does not return string/false

16 years ago- Fix Windows build
Johannes Schlüter [Wed, 23 Apr 2008 16:55:51 +0000 (16:55 +0000)]
- Fix Windows build

16 years agonew test for valid callback that fails for rewrite callback
Greg Beaver [Wed, 23 Apr 2008 16:50:19 +0000 (16:50 +0000)]
new test for valid callback that fails for rewrite callback

16 years agonew test for invalid rewrite callback
Greg Beaver [Wed, 23 Apr 2008 16:47:12 +0000 (16:47 +0000)]
new test for invalid rewrite callback

16 years agonew test for SCRIPT_NAME not containing the filename
Greg Beaver [Wed, 23 Apr 2008 16:06:59 +0000 (16:06 +0000)]
new test for SCRIPT_NAME not containing the filename

16 years agonew test for webPhar failure on opening file
Greg Beaver [Wed, 23 Apr 2008 16:03:08 +0000 (16:03 +0000)]
new test for webPhar failure on opening file

16 years agonew test for webPhar with phar.extract_list
Greg Beaver [Wed, 23 Apr 2008 16:00:06 +0000 (16:00 +0000)]
new test for webPhar with phar.extract_list

16 years agoopen_basedir tests for file system functions (v5.2, 5.3 and 6.0 branches)
Ant Phillips [Wed, 23 Apr 2008 14:10:12 +0000 (14:10 +0000)]
open_basedir tests for file system functions (v5.2, 5.3 and 6.0 branches)

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

16 years agoensure freeing of cwd/name happens in all cases
Greg Beaver [Tue, 22 Apr 2008 17:34:00 +0000 (17:34 +0000)]
ensure freeing of cwd/name happens in all cases

16 years agofix headers in test
Greg Beaver [Tue, 22 Apr 2008 17:29:11 +0000 (17:29 +0000)]
fix headers in test

16 years agonew test for fatal error in php file executed by front controller
Greg Beaver [Tue, 22 Apr 2008 17:28:50 +0000 (17:28 +0000)]
new test for fatal error in php file executed by front controller

16 years agore-enable disabled cwd code
Greg Beaver [Tue, 22 Apr 2008 17:19:06 +0000 (17:19 +0000)]
re-enable disabled cwd code