From be881ccff82ed7c931e6cdbeb2287ef75e90f024 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 29 Mar 2017 09:31:48 +0200 Subject: 7.1.4RC1 --- .gitignore | 2 + failed.txt | 46 ++++++++-------- php-7.0.10-datetests.patch | 24 --------- php-upstream.patch | 131 +++++++++++++++++++++++++++++++++++++++++++++ php71.spec | 9 +++- 5 files changed, 163 insertions(+), 49 deletions(-) create mode 100644 .gitignore create mode 100644 php-upstream.patch diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..70514af --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +php-*.tar.xz +php-*.src.rpm diff --git a/failed.txt b/failed.txt index f6565d2..cc3a01e 100644 --- a/failed.txt +++ b/failed.txt @@ -1,32 +1,32 @@ -===== 7.1.3 (2017-03-16) +===== 7.1.4RC1 (2017-03-30) $ grep -r 'Tests failed' /var/lib/mock/*/build.log -/var/lib/mock/el6i/build.log:Tests failed : 0 -/var/lib/mock/el6x/build.log:Tests failed : 0 -/var/lib/mock/el7x/build.log:Tests failed : 0 -/var/lib/mock/fc23i/build.log:Tests failed : 0 +/var/lib/mock/el6i/build.log:Tests failed : 1 +/var/lib/mock/el6x/build.log:Tests failed : 1 +/var/lib/mock/el7x/build.log:Tests failed : 1 +/var/lib/mock/fc23i/build.log:Tests failed : 1 /var/lib/mock/fc23x/build.log:Tests failed : 0 -/var/lib/mock/fc24i/build.log:Tests failed : 0 -/var/lib/mock/fc24x/build.log:Tests failed : 0 -/var/lib/mock/fc25i/build.log:Tests failed : 0 -/var/lib/mock/fc25x/build.log:Tests failed : 0 -/var/lib/mock/fc26i/build.log:Tests failed : 9 -/var/lib/mock/fc26x/build.log:Tests failed : 9 +/var/lib/mock/fc24i/build.log:Tests failed : 1 +/var/lib/mock/fc24x/build.log:Tests failed : 2 +/var/lib/mock/fc25i/build.log:Tests failed : 1 +/var/lib/mock/fc25x/build.log:Tests failed : 1 +/var/lib/mock/fc26i/build.log:Tests failed : 1 +/var/lib/mock/fc26x/build.log:Tests failed : 1 + +fc23i + (1) Test get_headers() function : test with context [ext/standard/tests/url/get_headers_error_003.phpt] +fc24x + (1) Bug #64438 proc_open hangs with stdin/out with 4097+ bytes [ext/standard/tests/streams/proc_open_bug64438.phpt] +el6i, el6x, fc24i, fc24x, fc25i, fc25x + (4) Bug #33414 [2] (Comprehensive list of incorrect days returned after strotime() / date() tests) [ext/date/tests/bug33414-2.phpt] fc26i, fc26x - Bug #20382 [2] (strtotime ("Monday", $date) produces wrong result on DST changeover) [ext/date/tests/bug20382-2.phpt] - Bug #27780 (strtotime(+1 xxx) returns a wrong date/time) [ext/date/tests/bug27780.phpt] - Bug #32086 (strtotime don't work in DST) [ext/date/tests/bug32086.phpt] - Bug #33414 [1] (Comprehensive list of incorrect days returned after strotime() / date() tests) [ext/date/tests/bug33414-1.phpt] - Bug #33414 [2] (Comprehensive list of incorrect days returned after strotime() / date() tests) [ext/date/tests/bug33414-2.phpt] - Bug #33415 [1] (Possibly invalid non-one-hour DST or timezone shifts) [ext/date/tests/bug33415-1.phpt] - Bug #33415 [2] (Possibly invalid non-one-hour DST or timezone shifts) [ext/date/tests/bug33415-2.phpt] - date_modify() function [1] [ext/date/tests/date_modify-1.phpt] - sni_server [ext/openssl/tests/sni_server.phpt] + (3) sni_server [ext/openssl/tests/sni_server.phpt] -* proc_open give erratic test results :( -** date tests vary with tzdata available in system -*** f26 failures related to tzdata 2016j vs 2017a and sni_server is a known issue with openssl 1.1 +(1) proc_open give erratic test results :( +(2) test issue (fixed upstream) +(3) known issue +(4) bugs related to tzdata 2017a (repo) vs 2017b (php) diff --git a/php-7.0.10-datetests.patch b/php-7.0.10-datetests.patch index c3a65e9..7df99a5 100644 --- a/php-7.0.10-datetests.patch +++ b/php-7.0.10-datetests.patch @@ -42,27 +42,3 @@ diff -up ./ext/date/tests/strtotime3-64bit.phpt.datetests ./ext/date/tests/strto string(31) "Fri, 16 Jun 2006 02:22:33 +0100" bool(false) string(31) "Tue, 02 Mar 2004 00:00:00 +0000" -diff -up ./ext/date/tests/bug33414-2.phpt.datetests ./ext/date/tests/bug33414-2.phpt ---- ./ext/date/tests/bug33414-2.phpt.datetests 2016-07-21 02:23:03.000000000 +0200 -+++ ./ext/date/tests/bug33414-2.phpt 2016-07-26 07:28:10.323598643 +0200 -@@ -74,7 +74,7 @@ $strtotime_tstamp = strtotime("next Frid - print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n"; - print "wanted=Friday 00:00:00\n\n"; - ?> ----EXPECT-- -+--EXPECTF-- - TZ=Pacific/Rarotonga - wrong day. - tStamp=Thursday 1970-01-01 17:17:17 CKT 0 - result=Tuesday 1970-01-06 00:00:00 CKT 0 -@@ -106,8 +106,8 @@ result=Tuesday 2005-04-12 00:00:00 CDT 1 - wanted=Tuesday 00:00:00 - - TZ=Pacific/Pitcairn - wrong day. --tStamp=Thursday 1970-01-01 17:17:17 PNT 0 --result=Wednesday 1970-01-07 00:00:00 PNT 0 -+tStamp=Thursday 1970-%s -+result=Wednesday 1970-%s - wanted=Wednesday 00:00:00 - - TZ=Pacific/Fakaofo - wrong day. - diff --git a/php-upstream.patch b/php-upstream.patch new file mode 100644 index 0000000..a36a4f9 --- /dev/null +++ b/php-upstream.patch @@ -0,0 +1,131 @@ +From d11211fb5379324e99dc67cdd7a0ec5031874ae7 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Wed, 29 Mar 2017 07:01:14 +0200 +Subject: [PATCH] relax test failing in fast computer + +--- + ext/date/tests/bug73837.phpt | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/ext/date/tests/bug73837.phpt b/ext/date/tests/bug73837.phpt +index 220deb6..af47cfd 100644 +--- a/ext/date/tests/bug73837.phpt ++++ b/ext/date/tests/bug73837.phpt +@@ -11,7 +11,9 @@ for ( $i = 0; $i < 1000; $i++ ) + $collect[$key] = true; + } + +-echo ( count( $collect ) > 990 ) ? "microseconds differ\n" : "microseconds do not differ enough\n"; ++var_dump($n = count( $collect )); ++echo ( $n > 900 ) ? "microseconds differ\n" : "microseconds do not differ enough\n"; + ?> +---EXPECT-- ++--EXPECTF-- ++int(%d) + microseconds differ +-- +2.1.4 + +From 012dc336a6ae01208c394994b648c221337bf81d Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Wed, 29 Mar 2017 07:25:01 +0200 +Subject: [PATCH] Fix buid with system libsqlite, see bug #74217 + +SQLITE_DETERMINISTIC only exists in recent version +e.g. missing on 3.7 which is the default on RHEL/CentOS-7 +and probably others (wheezy have 3.7, jessie 3.8...) +--- + ext/pdo_sqlite/pdo_sqlite.c | 2 ++ + ext/pdo_sqlite/tests/pdo_sqlite_createfunction_with_flags.phpt | 5 ++++- + ext/sqlite3/sqlite3.c | 2 ++ + ext/sqlite3/tests/sqlite3_37_createfunction_flags.phpt | 5 ++++- + 4 files changed, 12 insertions(+), 2 deletions(-) + +diff --git a/ext/pdo_sqlite/pdo_sqlite.c b/ext/pdo_sqlite/pdo_sqlite.c +index 621123b..d0eb182 100644 +--- a/ext/pdo_sqlite/pdo_sqlite.c ++++ b/ext/pdo_sqlite/pdo_sqlite.c +@@ -69,7 +69,9 @@ ZEND_GET_MODULE(pdo_sqlite) + /* {{{ PHP_MINIT_FUNCTION */ + PHP_MINIT_FUNCTION(pdo_sqlite) + { ++#ifdef SQLITE_DETERMINISTIC + REGISTER_PDO_CLASS_CONST_LONG("SQLITE_DETERMINISTIC", (zend_long)SQLITE_DETERMINISTIC); ++#endif + + return php_pdo_register_driver(&pdo_sqlite_driver); + } +diff --git a/ext/pdo_sqlite/tests/pdo_sqlite_createfunction_with_flags.phpt b/ext/pdo_sqlite/tests/pdo_sqlite_createfunction_with_flags.phpt +index 4f0b675..d826d93 100644 +--- a/ext/pdo_sqlite/tests/pdo_sqlite_createfunction_with_flags.phpt ++++ b/ext/pdo_sqlite/tests/pdo_sqlite_createfunction_with_flags.phpt +@@ -1,7 +1,10 @@ + --TEST-- + PDO_sqlite: Testing sqliteCreateFunction() with flags + --SKIPIF-- +- ++ + --FILE-- + ++ + --FILE-- + +Date: Wed, 29 Mar 2017 07:38:40 +0200 +Subject: [PATCH] relax more this test + +--- + ext/date/tests/bug73837.phpt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ext/date/tests/bug73837.phpt b/ext/date/tests/bug73837.phpt +index af47cfd..6fd12f8 100644 +--- a/ext/date/tests/bug73837.phpt ++++ b/ext/date/tests/bug73837.phpt +@@ -12,7 +12,7 @@ for ( $i = 0; $i < 1000; $i++ ) + } + + var_dump($n = count( $collect )); +-echo ( $n > 900 ) ? "microseconds differ\n" : "microseconds do not differ enough\n"; ++echo ( $n > 800 ) ? "microseconds differ\n" : "microseconds do not differ enough ($n)\n"; + ?> + --EXPECTF-- + int(%d) +-- +2.1.4 + diff --git a/php71.spec b/php71.spec index 14974a0..823455c 100644 --- a/php71.spec +++ b/php71.spec @@ -120,12 +120,12 @@ %global db_devel libdb-devel %endif -#global rcver RC1 +%global rcver RC1 %global rpmrel 1 Summary: PHP scripting language for creating dynamic web sites Name: php -Version: 7.1.3 +Version: 7.1.4 Release: %{?rcver:0.}%{rpmrel}%{?rcver:.%{rcver}}%{?dist} # All files licensed under PHP version 3.01, except # Zend is licensed under Zend @@ -179,6 +179,7 @@ Patch47: php-5.6.3-phpinfo.patch Patch91: php-5.6.3-oci8conf.patch # Upstream fixes (100+) +Patch100: php-upstream.patch # Security fixes (200+) @@ -1023,6 +1024,7 @@ httpd -V | grep -q 'threaded:.*yes' && exit 1 %patch91 -p1 -b .remi-oci8 # upstream patches +%patch100 -p1 -b .up # security patches @@ -2057,6 +2059,9 @@ fi %changelog +* Tue Mar 28 2017 Remi Collet - 7.1.4-0.1.RC1 +- Update to 7.1.4RC1 + * Tue Mar 14 2017 Remi Collet - 7.1.3-1 - Update to 7.1.3 - http://www.php.net/releases/7_1_3.php -- cgit