From 2de24f182c01a39859550f5c105ab1b7628f4a2e Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Tue, 21 Jan 2014 12:11:59 -0800 Subject: [PATCH 1/6] fix news --- NEWS | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 268196fe7f..1a5e34098d 100644 --- a/NEWS +++ b/NEWS @@ -4,20 +4,21 @@ PHP NEWS - Core: . Fixed bug #66286 (Incorrect object comparison with inheritance). (Nikita) - . Fixed bug #66509 (copy() arginfo has changed starting from 5.4). (willfitch) + . Fixed bug #66509 (copy() arginfo has changed starting from 5.4). + (Will Fitch) - mysqlnd . Fixed bug #66283 (Segmentation fault after memory_limit). (Johannes) - PDO_pgsql: . Fixed bug #62479 (PDO-psql cannot connect if password contains spaces). - (willfitch, iliaa) + (Will Fitch, Ilia) - Session: . Fixed bug #66481 (Calls to session_name() segfault when session.name is null). (Laruence) -?? ??? 2013, PHP 5.4.24 +10 Jan 2013, PHP 5.4.24 - Core: . Added validation of class names in the autoload process. (Dmitry) From ac6bd1e3466c608792371494dbba4782083218cc Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Tue, 21 Jan 2014 12:13:42 -0800 Subject: [PATCH 2/6] 5.4.26 next --- NEWS | 2 ++ configure.in | 2 +- main/php_version.h | 6 +++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index 1a5e34098d..452887f483 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,7 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| +?? ??? 2013, PHP 5.4.26 + ?? ??? 2013, PHP 5.4.25 - Core: diff --git a/configure.in b/configure.in index c57c343520..4764390acc 100644 --- a/configure.in +++ b/configure.in @@ -119,7 +119,7 @@ int zend_sprintf(char *buffer, const char *format, ...); PHP_MAJOR_VERSION=5 PHP_MINOR_VERSION=4 -PHP_RELEASE_VERSION=25 +PHP_RELEASE_VERSION=26 PHP_EXTRA_VERSION="-dev" PHP_VERSION="$PHP_MAJOR_VERSION.$PHP_MINOR_VERSION.$PHP_RELEASE_VERSION$PHP_EXTRA_VERSION" PHP_VERSION_ID=`expr [$]PHP_MAJOR_VERSION \* 10000 + [$]PHP_MINOR_VERSION \* 100 + [$]PHP_RELEASE_VERSION` diff --git a/main/php_version.h b/main/php_version.h index 213cd5386d..11791b14bd 100644 --- a/main/php_version.h +++ b/main/php_version.h @@ -2,7 +2,7 @@ /* edit configure.in to change version number */ #define PHP_MAJOR_VERSION 5 #define PHP_MINOR_VERSION 4 -#define PHP_RELEASE_VERSION 25 +#define PHP_RELEASE_VERSION 26 #define PHP_EXTRA_VERSION "-dev" -#define PHP_VERSION "5.4.25-dev" -#define PHP_VERSION_ID 50425 +#define PHP_VERSION "5.4.26-dev" +#define PHP_VERSION_ID 50426 From 512f9bfe8c84353188170c28d97aeb57cb32e7e1 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Tue, 21 Jan 2014 13:24:52 -0800 Subject: [PATCH 3/6] fix buglet in makedist --- makedist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makedist b/makedist index f5823d3925..1b47d7bd82 100755 --- a/makedist +++ b/makedist @@ -35,7 +35,7 @@ if test "${1}" = "1" -a "${2}" -lt "28"; then fi IFS="$old_IFS" -if test "$PHPROOTx" == "x"; then +if test "x$PHPROOT" == "x"; then PHPROOT=git@git.php.net:php-src.git; fi From 1bc16fbfcdba428d42bc6d1d5cd84ad88a601c21 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Tue, 21 Jan 2014 13:26:56 -0800 Subject: [PATCH 4/6] fix CVE ref for bug #66060 --- NEWS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 452887f483..a76000f9dc 100644 --- a/NEWS +++ b/NEWS @@ -28,7 +28,8 @@ PHP NEWS . Fixed bug #61645 (fopen and O_NONBLOCK). (Mike) - Date: - . Fixed bug #66060 (Heap buffer over-read in DateInterval). (Remi) + . Fixed bug #66060 (Heap buffer over-read in DateInterval). (CVE-2013-6712) + (Remi) . Fixed bug #63391 (Incorrect/inconsistent day of week prior to the year 1600). (Derick, T. Carter) . Fixed bug #61599 (Wrong Day of Week). (Derick, T. Carter) From 093ff4b62463958f32576e95b90587fad17db042 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Tue, 21 Jan 2014 13:27:18 -0800 Subject: [PATCH 5/6] fix CVE ref for bug #66060 --- NEWS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index e3430217a6..687dace796 100644 --- a/NEWS +++ b/NEWS @@ -56,7 +56,8 @@ spaces) (willfitch, iliaa) . Fixed bug #66218 (zend_register_functions breaks reflection). (Remi) - Date: - . Fixed bug #66060 (Heap buffer over-read in DateInterval). (Remi) + . Fixed bug #66060 (Heap buffer over-read in DateInterval) (CVE-2013-6712). + (Remi) . Fixed bug #65768 (DateTimeImmutable::diff does not work). (Nikita Nefedov) - DOM: From 383423a1ee356b102563100e99e147ce8da996c3 Mon Sep 17 00:00:00 2001 From: Yasuo Ohgaki Date: Wed, 22 Jan 2014 13:46:59 +0900 Subject: [PATCH 6/6] Re-fixed bug #66469 --- ext/session/session.c | 4 +--- ext/session/tests/bug60634.phpt | 1 + ext/session/tests/bug60634_error_4.phpt | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/session/session.c b/ext/session/session.c index 90d6ba7447..b1fcd3a239 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -1343,9 +1343,7 @@ static void php_session_send_cookie(TSRMLS_D) /* {{{ */ smart_str_0(&ncookie); - /* 'replace' must be 0 here, else a previous Set-Cookie - header, probably sent with setcookie() will be replaced! */ - sapi_add_header_ex(ncookie.c, ncookie.len, 0, 0 TSRMLS_CC); + sapi_add_header_ex(ncookie.c, ncookie.len, 0, 1 TSRMLS_CC); } /* }}} */ diff --git a/ext/session/tests/bug60634.phpt b/ext/session/tests/bug60634.phpt index e2dfd15b37..86dcb11526 100644 --- a/ext/session/tests/bug60634.phpt +++ b/ext/session/tests/bug60634.phpt @@ -43,3 +43,4 @@ echo "um, hi\n"; --EXPECTF-- write: goodbye cruel world close: goodbye cruel world + diff --git a/ext/session/tests/bug60634_error_4.phpt b/ext/session/tests/bug60634_error_4.phpt index f21d077b54..d0b5786af9 100644 --- a/ext/session/tests/bug60634_error_4.phpt +++ b/ext/session/tests/bug60634_error_4.phpt @@ -49,3 +49,4 @@ Stack trace: #1 {main} thrown in %s on line %d close: goodbye cruel world +