From 1984919ddc3252c0f9b5d5d0beef10bdc4804091 Mon Sep 17 00:00:00 2001 From: Julien Pauli Date: Tue, 12 Nov 2013 18:20:09 +0100 Subject: [PATCH 1/5] 5.5.7 now --- NEWS | 2 +- configure.in | 2 +- main/php_version.h | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index 9cacb5fd1a..8331261607 100644 --- a/NEWS +++ b/NEWS @@ -7,7 +7,7 @@ PHP NEWS case-sensitivity incorrectly"). (Andrea Faulds) -?? ??? 2013, PHP 5.5.6 +14 Nov 2013, PHP 5.5.6 - Core: . Fixed bug #65947 (basename is no more working after fgetcsv in certain diff --git a/configure.in b/configure.in index 7e444b0ac4..f25dc81c89 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=5 -PHP_RELEASE_VERSION=6 +PHP_RELEASE_VERSION=7 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 2d98a3f807..dd8a0272d5 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 5 -#define PHP_RELEASE_VERSION 6 +#define PHP_RELEASE_VERSION 7 #define PHP_EXTRA_VERSION "-dev" -#define PHP_VERSION "5.5.6-dev" -#define PHP_VERSION_ID 50506 +#define PHP_VERSION "5.5.7-dev" +#define PHP_VERSION_ID 50507 From 018b9445dadbe37c49dc0bfc909265a295992af6 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 13 Nov 2013 13:19:10 +0100 Subject: [PATCH 2/5] Fix failed test with recent glibc In recent version of strptime glibc upstream has fixed a discrepancy between documentation and actual behaviour by skipping over the sequence that would match %Z. See http://repo.or.cz/w/glibc.git/commitdiff/ddc7e412ab252e7360a4357664beb3b5d9c4f42b So when %Z is used in format glibc <= 2.18 returns the GMT as unparsed glibc >= 2.19 returns empty string Removing %Z from tested format gives the same behavior with all version. --- ext/standard/tests/time/strptime_basic.phpt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/standard/tests/time/strptime_basic.phpt b/ext/standard/tests/time/strptime_basic.phpt index 194a78f82b..30e3e82cc7 100644 --- a/ext/standard/tests/time/strptime_basic.phpt +++ b/ext/standard/tests/time/strptime_basic.phpt @@ -24,7 +24,7 @@ $input = "10:00:00 AM July 2 1963"; $tstamp = strtotime($input); $str = strftime("%r %B%e %Y %Z", $tstamp); -var_dump(strptime($str, '%H:%M:%S %p %B %d %Y %Z')); +var_dump(strptime($str, '%H:%M:%S %p %B %d %Y')); $str = strftime("%T %D", $tstamp); var_dump(strptime($str, '%H:%M:%S %m/%d/%y')); @@ -55,7 +55,7 @@ array(9) { ["tm_yday"]=> int(182) ["unparsed"]=> - string(3) "GMT" + string(4) " GMT" } array(9) { ["tm_sec"]=> From d7441f66959b8bee0a059b057e45bd48643153ab Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Thu, 14 Nov 2013 10:52:07 -0800 Subject: [PATCH 3/5] Move the JSON bugfix into the 5.5.6 changelog. --- NEWS | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index 8331261607..a092310414 100644 --- a/NEWS +++ b/NEWS @@ -2,10 +2,6 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2013, PHP 5.5.7 -- JSON - . Fixed whitespace part of bug #64874 ("json_decode handles whitespace and - case-sensitivity incorrectly"). (Andrea Faulds) - 14 Nov 2013, PHP 5.5.6 @@ -23,6 +19,10 @@ PHP NEWS - FPM: . Changed default listen() backlog to 65535. (Tony) +- JSON + . Fixed whitespace part of bug #64874 ("json_decode handles whitespace and + case-sensitivity incorrectly"). (Andrea Faulds) + - MySQLi: . Fixed bug #66043 (Segfault calling bind_param() on mysqli). (Laruence) From b8d88bf2c588dcaec185468da8db306cd7e6ab8d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 15 Nov 2013 09:49:42 +0100 Subject: [PATCH 4/5] Fix Bug #65714 PHP cli forces the tty to cooked mode Only drop the using_history() call with libedit as I don't know if it is required with readline. This also allow to run a php script in background without it being aborted on first output. --- ext/readline/readline.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/readline/readline.c b/ext/readline/readline.c index bd460696bd..d4032ca947 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -170,7 +170,10 @@ ZEND_GET_MODULE(readline) PHP_MINIT_FUNCTION(readline) { - using_history(); +#if HAVE_LIBREADLINE + /* libedit don't need this call which set the tty in cooked mode */ + using_history(); +#endif return PHP_MINIT(cli_readline)(INIT_FUNC_ARGS_PASSTHRU); } From cd6eda5e5f85f34d45622cd97301eac83cc4beab Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 15 Nov 2013 09:52:48 +0100 Subject: [PATCH 5/5] NEWS --- NEWS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NEWS b/NEWS index a092310414..80e71670c7 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,8 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2013, PHP 5.5.7 +- readline + . Fixed Bug #65714 (PHP cli forces the tty to cooked mode). (Remi) 14 Nov 2013, PHP 5.5.6