summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-5.6.24-datetests.patch103
-rw-r--r--php-5.6.30-datetests.patch695
-rw-r--r--php.spec7
3 files changed, 700 insertions, 105 deletions
diff --git a/php-5.6.24-datetests.patch b/php-5.6.24-datetests.patch
deleted file mode 100644
index 9f3bbfe..0000000
--- a/php-5.6.24-datetests.patch
+++ /dev/null
@@ -1,103 +0,0 @@
-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 -up ./ext/date/tests/bug66985.phpt.datetests ./ext/date/tests/bug66985.phpt
---- ./ext/date/tests/bug66985.phpt.datetests 2016-07-21 02:23:03.000000000 +0200
-+++ ./ext/date/tests/bug66985.phpt 2016-07-26 07:28:10.323598643 +0200
-@@ -3,7 +3,7 @@ Bug #66985 (Some timezones are no longer
- --FILE--
- <?php
- $zones = array(
-- "CST6CDT", "Cuba", "Egypt", "Eire", "EST5EDT", "Factory", "GB-Eire",
-+ "CST6CDT", "Cuba", "Egypt", "Eire", "EST5EDT", "GB-Eire",
- "GMT0", "Greenwich", "Hongkong", "Iceland", "Iran", "Israel", "Jamaica",
- "Japan", "Kwajalein", "Libya", "MST7MDT", "Navajo", "NZ-CHAT", "Poland",
- "Portugal", "PST8PDT", "Singapore", "Turkey", "Universal", "W-SU",
-@@ -45,11 +45,6 @@ DateTimeZone Object
- )
- DateTimeZone Object
- (
-- [timezone_type] => 3
-- [timezone] => Factory
--)
--DateTimeZone Object
--(
- [timezone_type] => 3
- [timezone] => GB-Eire
- )
-diff -up ./ext/date/tests/date_sunrise_variation9.phpt.datetests ./ext/date/tests/date_sunrise_variation9.phpt
---- ./ext/date/tests/date_sunrise_variation9.phpt.datetests 2016-07-21 02:23:03.000000000 +0200
-+++ ./ext/date/tests/date_sunrise_variation9.phpt 2016-07-26 07:28:10.323598643 +0200
-@@ -43,5 +43,5 @@ int\((-1097256359|123456811756)\)
- -- Testing date_sunrise\(\) function by passing float -12.3456789000e10 value to time --
- string\(5\) "(07:42|08:48|08:04)"
- float\((7.713[0-9]*|8.810[0-9]*|8.074[0-9]*)\)
--int\((1097304168|-2147443882|-123456761731)\)
-+int\((.*)\)
- ===DONE===
-diff -up ./ext/date/tests/date_sunset_variation9.phpt.datetests ./ext/date/tests/date_sunset_variation9.phpt
---- ./ext/date/tests/date_sunset_variation9.phpt.datetests 2016-07-21 02:23:03.000000000 +0200
-+++ ./ext/date/tests/date_sunset_variation9.phpt 2016-07-26 07:28:10.323598643 +0200
-@@ -43,5 +43,5 @@ int\((-1097212211|123456853728)\)
- -- Testing date_sunset\(\) function by passing float -12.3456789000e10 value to time --
- string\(5\) "(19:03|18:12|18:48)"
- float\((19.056[0-9]*|18.213[0-9]*|18.808[0-9]*)\)
--int\((1097345002|-2147410031|-123456723090)\)
-+int\((.*)\)
- ===DONE===
-diff -up ./ext/date/tests/getdate_variation7.phpt.datetests ./ext/date/tests/getdate_variation7.phpt
---- ./ext/date/tests/getdate_variation7.phpt.datetests 2016-07-21 02:23:03.000000000 +0200
-+++ ./ext/date/tests/getdate_variation7.phpt 2016-07-26 07:28:10.323598643 +0200
-@@ -55,9 +55,9 @@ array\(11\) {
- \["seconds"\]=>
- int\((.+)\)
- \["minutes"\]=>
-- int\((39|23)\)
-+ int\(([0-9]*)\)
- \["hours"\]=>
-- int\((0|2|5)\)
-+ int\(([0-9]*)\)
- \["mday"\]=>
- int\((9|14|23)\)
- \["wday"\]=>
-diff -up ./ext/date/tests/strtotime3-64bit.phpt.datetests ./ext/date/tests/strtotime3-64bit.phpt
---- ./ext/date/tests/strtotime3-64bit.phpt.datetests 2016-07-21 02:23:03.000000000 +0200
-+++ ./ext/date/tests/strtotime3-64bit.phpt 2016-07-26 07:39:45.713272263 +0200
-@@ -44,7 +44,7 @@ foreach ($strs as $str) {
- }
-
- ?>
----EXPECT--
-+--EXPECTF--
- bool(false)
- bool(false)
- string(31) "Thu, 15 Jun 2006 00:00:00 +0100"
-@@ -53,7 +53,7 @@ bool(false)
- string(31) "Fri, 16 Jun 2006 23:49:12 +0100"
- bool(false)
- string(31) "Fri, 16 Jun 2006 02:22:00 +0100"
--string(31) "Sun, 16 Jun 0222 02:22:00 -0036"
-+string(31) "Sun, 16 Jun 0222 02:22:00 %s"
- string(31) "Fri, 16 Jun 2006 02:22:33 +0100"
- bool(false)
- string(31) "Tue, 02 Mar 2004 00:00:00 +0000"
diff --git a/php-5.6.30-datetests.patch b/php-5.6.30-datetests.patch
new file mode 100644
index 0000000..9da3845
--- /dev/null
+++ b/php-5.6.30-datetests.patch
@@ -0,0 +1,695 @@
+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 -up ./ext/date/tests/bug66985.phpt.datetests ./ext/date/tests/bug66985.phpt
+--- ./ext/date/tests/bug66985.phpt.datetests 2016-07-21 02:23:03.000000000 +0200
++++ ./ext/date/tests/bug66985.phpt 2016-07-26 07:28:10.323598643 +0200
+@@ -3,7 +3,7 @@ Bug #66985 (Some timezones are no longer
+ --FILE--
+ <?php
+ $zones = array(
+- "CST6CDT", "Cuba", "Egypt", "Eire", "EST5EDT", "Factory", "GB-Eire",
++ "CST6CDT", "Cuba", "Egypt", "Eire", "EST5EDT", "GB-Eire",
+ "GMT0", "Greenwich", "Hongkong", "Iceland", "Iran", "Israel", "Jamaica",
+ "Japan", "Kwajalein", "Libya", "MST7MDT", "Navajo", "NZ-CHAT", "Poland",
+ "Portugal", "PST8PDT", "Singapore", "Turkey", "Universal", "W-SU",
+@@ -45,11 +45,6 @@ DateTimeZone Object
+ )
+ DateTimeZone Object
+ (
+- [timezone_type] => 3
+- [timezone] => Factory
+-)
+-DateTimeZone Object
+-(
+ [timezone_type] => 3
+ [timezone] => GB-Eire
+ )
+diff -up ./ext/date/tests/date_sunrise_variation9.phpt.datetests ./ext/date/tests/date_sunrise_variation9.phpt
+--- ./ext/date/tests/date_sunrise_variation9.phpt.datetests 2016-07-21 02:23:03.000000000 +0200
++++ ./ext/date/tests/date_sunrise_variation9.phpt 2016-07-26 07:28:10.323598643 +0200
+@@ -43,5 +43,5 @@ int\((-1097256359|123456811756)\)
+ -- Testing date_sunrise\(\) function by passing float -12.3456789000e10 value to time --
+ string\(5\) "(07:42|08:48|08:04)"
+ float\((7.713[0-9]*|8.810[0-9]*|8.074[0-9]*)\)
+-int\((1097304168|-2147443882|-123456761731)\)
++int\((.*)\)
+ ===DONE===
+diff -up ./ext/date/tests/date_sunset_variation9.phpt.datetests ./ext/date/tests/date_sunset_variation9.phpt
+--- ./ext/date/tests/date_sunset_variation9.phpt.datetests 2016-07-21 02:23:03.000000000 +0200
++++ ./ext/date/tests/date_sunset_variation9.phpt 2016-07-26 07:28:10.323598643 +0200
+@@ -43,5 +43,5 @@ int\((-1097212211|123456853728)\)
+ -- Testing date_sunset\(\) function by passing float -12.3456789000e10 value to time --
+ string\(5\) "(19:03|18:12|18:48)"
+ float\((19.056[0-9]*|18.213[0-9]*|18.808[0-9]*)\)
+-int\((1097345002|-2147410031|-123456723090)\)
++int\((.*)\)
+ ===DONE===
+diff -up ./ext/date/tests/getdate_variation7.phpt.datetests ./ext/date/tests/getdate_variation7.phpt
+--- ./ext/date/tests/getdate_variation7.phpt.datetests 2016-07-21 02:23:03.000000000 +0200
++++ ./ext/date/tests/getdate_variation7.phpt 2016-07-26 07:28:10.323598643 +0200
+@@ -55,9 +55,9 @@ array\(11\) {
+ \["seconds"\]=>
+ int\((.+)\)
+ \["minutes"\]=>
+- int\((39|23)\)
++ int\(([0-9]*)\)
+ \["hours"\]=>
+- int\((0|2|5)\)
++ int\(([0-9]*)\)
+ \["mday"\]=>
+ int\((9|14|23)\)
+ \["wday"\]=>
+diff -up ./ext/date/tests/strtotime3-64bit.phpt.datetests ./ext/date/tests/strtotime3-64bit.phpt
+--- ./ext/date/tests/strtotime3-64bit.phpt.datetests 2016-07-21 02:23:03.000000000 +0200
++++ ./ext/date/tests/strtotime3-64bit.phpt 2016-07-26 07:39:45.713272263 +0200
+@@ -44,7 +44,7 @@ foreach ($strs as $str) {
+ }
+
+ ?>
+---EXPECT--
++--EXPECTF--
+ bool(false)
+ bool(false)
+ string(31) "Thu, 15 Jun 2006 00:00:00 +0100"
+@@ -53,7 +53,7 @@ bool(false)
+ string(31) "Fri, 16 Jun 2006 23:49:12 +0100"
+ bool(false)
+ string(31) "Fri, 16 Jun 2006 02:22:00 +0100"
+-string(31) "Sun, 16 Jun 0222 02:22:00 -0036"
++string(31) "Sun, 16 Jun 0222 02:22:00 %s"
+ string(31) "Fri, 16 Jun 2006 02:22:33 +0100"
+ bool(false)
+ string(31) "Tue, 02 Mar 2004 00:00:00 +0000"
+
+
+
+Adapted from 7.0 from
+
+
+From cf60f26da684590d8313852ff2fde2ce788ba119 Mon Sep 17 00:00:00 2001
+From: Derick Rethans <github@derickrethans.nl>
+Date: Thu, 2 Mar 2017 11:28:02 +0000
+Subject: [PATCH] Fixed tests after tzdb removed abbreviations
+
+---
+ ext/date/tests/bug20382-2.phpt | 22 +++++-----
+ ext/date/tests/bug27780.phpt | 54 ++++++++++++-------------
+ ext/date/tests/bug32086.phpt | 20 +++++-----
+ ext/date/tests/bug33414-1.phpt | 52 ++++++++++++------------
+ ext/date/tests/bug33414-2.phpt | 24 +++++------
+ ext/date/tests/bug33415-1.phpt | 4 +-
+ ext/date/tests/bug33415-2.phpt | 84 +++++++++++++++++++--------------------
+ ext/date/tests/date_modify-1.phpt | 4 +-
+ 8 files changed, 132 insertions(+), 132 deletions(-)
+
+diff --git a/ext/date/tests/bug20382-2.phpt b/ext/date/tests/bug20382-2.phpt
+index 39778ae..2488c47 100644
+--- a/ext/date/tests/bug20382-2.phpt
++++ b/ext/date/tests/bug20382-2.phpt
+@@ -43,20 +43,20 @@ foreach ($tests as $test) {
+ print "wanted = Monday 00:00:00\n\n";
+ }
+ ?>
+---EXPECT--
++--EXPECTF--
+ Europe/Andorra
+ ts = Monday 2037-10-19 17:17:17 CEST
+ result = Monday 2037-10-26 00:00:00 CET
+ wanted = Monday 00:00:00
+
+ Asia/Dubai
+-ts = Thursday 1970-01-01 17:17:17 GST
+-result = Monday 1970-01-05 00:00:00 GST
++ts = Thursday 1970-01-01 17:17:17 %s
++result = Monday 1970-01-05 00:00:00 %s
+ wanted = Monday 00:00:00
+
+ Asia/Kabul
+-ts = Thursday 1970-01-01 17:17:17 AFT
+-result = Monday 1970-01-05 00:00:00 AFT
++ts = Thursday 1970-01-01 17:17:17 %s
++result = Monday 1970-01-05 00:00:00 %s
+ wanted = Monday 00:00:00
+
+ America/Antigua
+@@ -130,8 +130,8 @@ result = Monday 1971-01-04 00:00:00 AST
+ wanted = Monday 00:00:00
+
+ Asia/Dacca
+-ts = Friday 1971-01-01 17:17:17 DACT
+-result = Monday 1971-01-04 00:00:00 DACT
++ts = Friday 1971-01-01 17:17:17 %s
++result = Monday 1971-01-04 00:00:00 %s
+ wanted = Monday 00:00:00
+
+ Europe/Brussels
+@@ -150,13 +150,13 @@ result = Monday 1983-04-18 01:00:00 CEST
+ wanted = Monday 00:00:00
+
+ America/Buenos_Aires
+-ts = Monday 1974-09-30 17:17:17 ART
+-result = Monday 1974-10-07 00:00:00 ART
++ts = Monday 1974-09-30 17:17:17 %s
++result = Monday 1974-10-07 00:00:00 %s
+ wanted = Monday 00:00:00
+
+ America/Rosario
+-ts = Monday 1974-09-30 17:17:17 ART
+-result = Monday 1974-10-07 00:00:00 ART
++ts = Monday 1974-09-30 17:17:17 %s
++result = Monday 1974-10-07 00:00:00 %s
+ wanted = Monday 00:00:00
+
+ Europe/Vienna
+diff --git a/ext/date/tests/bug27780.phpt b/ext/date/tests/bug27780.phpt
+index af35b8f..b1cfa83 100644
+--- a/ext/date/tests/bug27780.phpt
++++ b/ext/date/tests/bug27780.phpt
+@@ -41,7 +41,7 @@ foreach ($timezones as $timezone) {
+ echo "\n";
+ }
+ ?>
+---EXPECT--
++--EXPECTF--
+ America/Chicago
+ 1076824799 [2004-02-14 23:59:59 CST] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +59 seconds]
+ 1076824800 [2004-02-15 00:00:00 CST] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +60 seconds]
+@@ -88,31 +88,31 @@ Asia/Jerusalem
+ 1083099600 [2004-04-28 00:00:00 IDT] [2004-04-07 00:00:00 +21 days]
+
+ Asia/Singapore
+-1076774399 [2004-02-14 23:59:59 SGT] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +59 seconds]
+-1076774400 [2004-02-15 00:00:00 SGT] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +60 seconds]
+-1076774401 [2004-02-15 00:00:01 SGT] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +61 seconds]
+-1079452800 [2004-03-17 00:00:00 SGT] [2004-04-07 00:00:00 -21 days]
+-1080316800 [2004-03-27 00:00:00 SGT] [2004-04-07 00:00:00 11 days ago]
+-1080410400 [2004-03-28 02:00:00 SGT] [2004-04-07 00:00:00 -10 day +2 hours]
+-1081180800 [2004-04-06 00:00:00 SGT] [2004-04-07 00:00:00 -1 day]
+-1081267200 [2004-04-07 00:00:00 SGT] [2004-04-07 00:00:00]
+-1081270800 [2004-04-07 01:00:00 SGT] [2004-04-07 00:00:00 +1 hour]
+-1081274400 [2004-04-07 02:00:00 SGT] [2004-04-07 00:00:00 +2 hour]
+-1081353600 [2004-04-08 00:00:00 SGT] [2004-04-07 00:00:00 +1 day]
+-1081353600 [2004-04-08 00:00:00 SGT] [2004-04-07 00:00:00 1 day]
+-1083081600 [2004-04-28 00:00:00 SGT] [2004-04-07 00:00:00 +21 days]
++1076774399 [2004-02-14 23:59:59 %s] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +59 seconds]
++1076774400 [2004-02-15 00:00:00 %s] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +60 seconds]
++1076774401 [2004-02-15 00:00:01 %s] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +61 seconds]
++1079452800 [2004-03-17 00:00:00 %s] [2004-04-07 00:00:00 -21 days]
++1080316800 [2004-03-27 00:00:00 %s] [2004-04-07 00:00:00 11 days ago]
++1080410400 [2004-03-28 02:00:00 %s] [2004-04-07 00:00:00 -10 day +2 hours]
++1081180800 [2004-04-06 00:00:00 %s] [2004-04-07 00:00:00 -1 day]
++1081267200 [2004-04-07 00:00:00 %s] [2004-04-07 00:00:00]
++1081270800 [2004-04-07 01:00:00 %s] [2004-04-07 00:00:00 +1 hour]
++1081274400 [2004-04-07 02:00:00 %s] [2004-04-07 00:00:00 +2 hour]
++1081353600 [2004-04-08 00:00:00 %s] [2004-04-07 00:00:00 +1 day]
++1081353600 [2004-04-08 00:00:00 %s] [2004-04-07 00:00:00 1 day]
++1083081600 [2004-04-28 00:00:00 %s] [2004-04-07 00:00:00 +21 days]
+
+ America/Sao_Paulo
+-1076810399 [2004-02-14 23:59:59 BRST] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +59 seconds]
+-1076814000 [2004-02-15 00:00:00 BRT] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +60 seconds]
+-1076814001 [2004-02-15 00:00:01 BRT] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +61 seconds]
+-1079492400 [2004-03-17 00:00:00 BRT] [2004-04-07 00:00:00 -21 days]
+-1080356400 [2004-03-27 00:00:00 BRT] [2004-04-07 00:00:00 11 days ago]
+-1080450000 [2004-03-28 02:00:00 BRT] [2004-04-07 00:00:00 -10 day +2 hours]
+-1081220400 [2004-04-06 00:00:00 BRT] [2004-04-07 00:00:00 -1 day]
+-1081306800 [2004-04-07 00:00:00 BRT] [2004-04-07 00:00:00]
+-1081310400 [2004-04-07 01:00:00 BRT] [2004-04-07 00:00:00 +1 hour]
+-1081314000 [2004-04-07 02:00:00 BRT] [2004-04-07 00:00:00 +2 hour]
+-1081393200 [2004-04-08 00:00:00 BRT] [2004-04-07 00:00:00 +1 day]
+-1081393200 [2004-04-08 00:00:00 BRT] [2004-04-07 00:00:00 1 day]
+-1083121200 [2004-04-28 00:00:00 BRT] [2004-04-07 00:00:00 +21 days]
++1076810399 [2004-02-14 23:59:59 %s] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +59 seconds]
++1076814000 [2004-02-15 00:00:00 %s] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +60 seconds]
++1076814001 [2004-02-15 00:00:01 %s] [2004-04-07 00:00:00 -2 months +7 days +23 hours +59 minutes +61 seconds]
++1079492400 [2004-03-17 00:00:00 %s] [2004-04-07 00:00:00 -21 days]
++1080356400 [2004-03-27 00:00:00 %s] [2004-04-07 00:00:00 11 days ago]
++1080450000 [2004-03-28 02:00:00 %s] [2004-04-07 00:00:00 -10 day +2 hours]
++1081220400 [2004-04-06 00:00:00 %s] [2004-04-07 00:00:00 -1 day]
++1081306800 [2004-04-07 00:00:00 %s] [2004-04-07 00:00:00]
++1081310400 [2004-04-07 01:00:00 %s] [2004-04-07 00:00:00 +1 hour]
++1081314000 [2004-04-07 02:00:00 %s] [2004-04-07 00:00:00 +2 hour]
++1081393200 [2004-04-08 00:00:00 %s] [2004-04-07 00:00:00 +1 day]
++1081393200 [2004-04-08 00:00:00 %s] [2004-04-07 00:00:00 1 day]
++1083121200 [2004-04-28 00:00:00 %s] [2004-04-07 00:00:00 +21 days]
+diff --git a/ext/date/tests/bug32086.phpt b/ext/date/tests/bug32086.phpt
+index e065c0b..db9df51 100644
+--- a/ext/date/tests/bug32086.phpt
++++ b/ext/date/tests/bug32086.phpt
+@@ -34,18 +34,18 @@ echo date("Y-m-d H:i:s T\n", $l);
+ 1099364400
+ 1099364400
+ 1099447200
+-2004-11-01 00:00:00 BRT
+-2004-11-02 01:00:00 BRST
+-2004-11-02 01:00:00 BRST
+-2004-11-02 01:00:00 BRST
+-2004-11-03 00:00:00 BRST
++2004-11-01 00:00:00 -03
++2004-11-02 01:00:00 -02
++2004-11-02 01:00:00 -02
++2004-11-02 01:00:00 -02
++2004-11-03 00:00:00 -02
+ 1108778400
+ 1108868400
+ 1108868400
+ 1108868400
+ 1108954800
+-2005-02-19 00:00:00 BRST
+-2005-02-20 00:00:00 BRT
+-2005-02-20 00:00:00 BRT
+-2005-02-20 00:00:00 BRT
+-2005-02-21 00:00:00 BRT
++2005-02-19 00:00:00 -02
++2005-02-20 00:00:00 -03
++2005-02-20 00:00:00 -03
++2005-02-20 00:00:00 -03
++2005-02-21 00:00:00 -03
+diff --git a/ext/date/tests/bug33414-1.phpt b/ext/date/tests/bug33414-1.phpt
+index 86b3183..a7596f9 100644
+--- a/ext/date/tests/bug33414-1.phpt
++++ b/ext/date/tests/bug33414-1.phpt
+@@ -200,23 +200,23 @@ print "wanted=Thursday 00:00:00\n\n";
+ ?>
+ --EXPECT--
+ TZ=America/Mendoza - wrong day.
+-tStamp=Sunday 1992-10-18 17:17:17 ARST 1
+-result=Sunday 1992-10-25 00:00:00 ARST 1
++tStamp=Sunday 1992-10-18 17:17:17 -02 1
++result=Sunday 1992-10-25 00:00:00 -02 1
+ wanted=Sunday 00:00:00
+
+ TZ=America/Catamarca - wrong day.
+-tStamp=Sunday 1990-10-21 17:17:17 ARST 1
+-result=Sunday 1990-10-28 00:00:00 ARST 1
++tStamp=Sunday 1990-10-21 17:17:17 -02 1
++result=Sunday 1990-10-28 00:00:00 -02 1
+ wanted=Sunday 00:00:00
+
+ TZ=America/Cordoba - wrong day.
+-tStamp=Sunday 1990-10-21 17:17:17 ARST 1
+-result=Sunday 1990-10-28 00:00:00 ARST 1
++tStamp=Sunday 1990-10-21 17:17:17 -02 1
++result=Sunday 1990-10-28 00:00:00 -02 1
+ wanted=Sunday 00:00:00
+
+ TZ=America/Rosario - wrong day.
+-tStamp=Tuesday 1991-10-15 17:17:17 WART 0
+-result=Tuesday 1991-10-22 00:00:00 ARST 1
++tStamp=Tuesday 1991-10-15 17:17:17 -04 0
++result=Tuesday 1991-10-22 00:00:00 -02 1
+ wanted=Tuesday 00:00:00
+
+ TZ=Europe/Vienna - wrong day - giving unexpected results, at
+@@ -231,8 +231,8 @@ result=Monday 1992-09-28 00:00:00 +04 0
+ wanted=Monday 00:00:00
+
+ TZ=America/Noronha - wrong day.
+-tStamp=Friday 1999-10-01 17:17:17 FNT 0
+-result=Friday 1999-10-08 00:00:00 FNST 1
++tStamp=Friday 1999-10-01 17:17:17 -02 0
++result=Friday 1999-10-08 00:00:00 -01 1
+ wanted=Friday 00:00:00
+
+ TZ=America/Havana - wrong day.
+@@ -256,13 +256,13 @@ result=Friday 2003-04-04 00:00:00 EEST 1
+ wanted=Friday 00:00:00
+
+ TZ=Pacific/Kwajalein - wrong day.
+-tStamp=Friday 1993-08-13 17:17:17 KWAT 0
+-result=Saturday 1993-08-21 00:00:00 MHT 0
++tStamp=Friday 1993-08-13 17:17:17 -12 0
++result=Saturday 1993-08-21 00:00:00 +12 0
+ wanted=Friday 00:00:00
+
+ TZ=Asia/Ulan_Bator - wrong day.
+-tStamp=Saturday 2001-09-22 17:17:17 ULAST 1
+-result=Saturday 2001-09-29 00:00:00 ULAST 1
++tStamp=Saturday 2001-09-22 17:17:17 +09 1
++result=Saturday 2001-09-29 00:00:00 +09 1
+ wanted=Saturday 00:00:00
+
+ TZ=America/Cancun - wrong day.
+@@ -286,18 +286,18 @@ result=Thursday 2002-04-11 00:00:00 MDT 1
+ wanted=Thursday 00:00:00
+
+ TZ=Asia/Kuala_Lumpur - wrong day.
+-tStamp=Monday 1981-12-28 17:17:17 MALT 0
+-result=Monday 1982-01-04 00:00:00 MYT 0
++tStamp=Monday 1981-12-28 17:17:17 +0730 0
++result=Monday 1982-01-04 00:00:00 +08 0
+ wanted=Monday 00:00:00
+
+ TZ=Pacific/Chatham - wrong day.
+-tStamp=Monday 1974-10-28 17:17:17 CHAST 0
+-result=Monday 1974-11-04 00:00:00 CHADT 1
++tStamp=Monday 1974-10-28 17:17:17 +1245 0
++result=Monday 1974-11-04 00:00:00 +1345 1
+ wanted=Monday 00:00:00
+
+ TZ=America/Lima - wrong day.
+-tStamp=Thursday 1985-12-26 17:17:17 PET 0
+-result=Thursday 1986-01-02 00:00:00 PEST 1
++tStamp=Thursday 1985-12-26 17:17:17 -05 0
++result=Thursday 1986-01-02 00:00:00 -04 1
+ wanted=Thursday 00:00:00
+
+ TZ=Asia/Karachi - wrong day.
+@@ -306,16 +306,16 @@ result=Friday 2002-04-12 00:00:00 PKST 1
+ wanted=Friday 00:00:00
+
+ TZ=America/Asuncion - wrong day.
+-tStamp=Wednesday 2002-02-27 17:17:17 PYST 1
+-result=Wednesday 2002-03-06 00:00:00 PYST 1
++tStamp=Wednesday 2002-02-27 17:17:17 -03 1
++result=Wednesday 2002-03-06 00:00:00 -03 1
+ wanted=Wednesday 00:00:00
+
+ TZ=Asia/Singapore - wrong day.
+-tStamp=Thursday 1981-12-31 17:17:17 SGT 0
+-result=Thursday 1982-01-07 00:00:00 SGT 0
++tStamp=Thursday 1981-12-31 17:17:17 +0730 0
++result=Thursday 1982-01-07 00:00:00 +08 0
+ wanted=Thursday 00:00:00
+
+ TZ=America/Montevideo - wrong day.
+-tStamp=Thursday 2004-09-16 17:17:17 UYT 0
+-result=Thursday 2004-09-23 00:00:00 UYST 1
++tStamp=Thursday 2004-09-16 17:17:17 -03 0
++result=Thursday 2004-09-23 00:00:00 -02 1
+ wanted=Thursday 00:00:00
+diff --git a/ext/date/tests/bug33414-2.phpt b/ext/date/tests/bug33414-2.phpt
+index 51cbe3b..8e8ad4b 100644
+--- a/ext/date/tests/bug33414-2.phpt
++++ b/ext/date/tests/bug33414-2.phpt
+@@ -76,13 +76,13 @@
+ ?>
+ --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
++tStamp=Thursday 1970-01-01 17:17:17 -1030 0
++result=Tuesday 1970-01-06 00:00:00 -1030 0
+ wanted=Tuesday 00:00:00
+
+ TZ=Atlantic/South_Georgia - wrong day.
+-tStamp=Thursday 1970-01-01 17:17:17 GST 0
+-result=Tuesday 1970-01-06 00:00:00 GST 0
++tStamp=Thursday 1970-01-01 17:17:17 -02 0
++result=Tuesday 1970-01-06 00:00:00 -02 0
+ wanted=Tuesday 00:00:00
+
+ TZ=America/Port-au-Prince - wrong day.
+@@ -91,13 +91,13 @@
+ wanted=Monday 00:00:00
+
+ TZ=Pacific/Enderbury - wrong day, off by 2 days.
+-tStamp=Thursday 1970-01-01 17:17:17 PHOT 0
+-result=Monday 1970-01-05 00:00:00 PHOT 0
++tStamp=Thursday 1970-01-01 17:17:17 -12 0
++result=Monday 1970-01-05 00:00:00 -12 0
+ wanted=Monday 00:00:00
+
+ TZ=Pacific/Kiritimati - wrong day, off by 2 days.
+-tStamp=Thursday 1970-01-01 17:17:17 LINT 0
+-result=Monday 1970-01-05 00:00:00 LINT 0
++tStamp=Thursday 1970-01-01 17:17:17 -1040 0
++result=Monday 1970-01-05 00:00:00 -1040 0
+ wanted=Monday 00:00:00
+
+ TZ=America/Managua - wrong day.
+@@ -111,8 +111,8 @@
+ wanted=Wednesday 00:00:00
+
+ TZ=Pacific/Fakaofo - wrong day.
+-tStamp=Thursday 1970-01-01 17:17:17 TKT 0
+-result=Saturday 1970-01-03 00:00:00 TKT 0
++tStamp=Thursday 1970-01-01 17:17:17 -11 0
++result=Saturday 1970-01-03 00:00:00 -11 0
+ wanted=Saturday 00:00:00
+
+ TZ=Pacific/Johnston - wrong day.
+diff --git a/ext/date/tests/bug33415-1.phpt b/ext/date/tests/bug33415-1.phpt
+index 414515b..e596566 100644
+--- a/ext/date/tests/bug33415-1.phpt
++++ b/ext/date/tests/bug33415-1.phpt
+@@ -23,8 +23,8 @@ print "wanted=Sunday 00:00:00\n\n";
+ --EXPECT--
+ TZ=America/Jujuy - Is it OK for this to be 2 AM, rather than 1
+ AM as per most DST transitions?
+-tStamp=Monday 1990-10-15 17:17:17 WART 0
+-result=Monday 1990-10-22 00:00:00 WART 0
++tStamp=Monday 1990-10-15 17:17:17 -04 0
++result=Monday 1990-10-22 00:00:00 -04 0
+ wanted=Monday 00:00:00
+
+ TZ=Asia/Tbilisi - Is it OK for this to be 2 AM?
+diff --git a/ext/date/tests/bug33415-2.phpt b/ext/date/tests/bug33415-2.phpt
+index c284f25..f59df64 100644
+--- a/ext/date/tests/bug33415-2.phpt
++++ b/ext/date/tests/bug33415-2.phpt
+@@ -208,7 +208,7 @@ print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
+ print "wanted=Monday 00:30:00\n\n";
+
+ ?>
+---EXPECT--
++--EXPECTF--
+ TZ=Africa/Bujumbura - *Note*: Unexpected, as does not appear to
+ have a DST or timezone transition.
+ tStamp=Thursday 1970-01-01 17:17:17 CAT 0
+@@ -216,14 +216,14 @@ result=Wednesday 1970-01-07 00:00:00 CAT 0
+ wanted=Wednesday 00:00:00
+
+ TZ=Asia/Thimbu - Is it OK for this to be 0:30 AM? yes
+-tStamp=Thursday 1987-09-24 17:17:17 IST 0
+-result=Thursday 1987-10-01 00:30:00 BTT 0
++tStamp=Thursday 1987-09-24 17:17:17 +0530 0
++result=Thursday 1987-10-01 00:30:00 +06 0
+ wanted=Thursday 00:30:00
+
+ TZ=Indian/Cocos - Is it OK for this to be 6:30 AM? Note: does not
+ appear to have a DST or timezone transition.
+-tStamp=Thursday 1970-01-01 17:17:17 CCT 0
+-result=Thursday 1970-01-08 00:00:00 CCT 0
++tStamp=Thursday 1970-01-01 17:17:17 +0630 0
++result=Thursday 1970-01-08 00:00:00 +0630 0
+ wanted=Thursday 00:00:00
+
+ TZ=Africa/Lubumbashi - Is it OK for this to be 2 AM? Note: does
+@@ -233,110 +233,110 @@ result=Saturday 1970-01-03 00:00:00 CAT 0
+ wanted=Saturday 00:00:00
+
+ TZ=Asia/Kashgar - Is it OK for this to be 3 AM? yes
+-tStamp=Thursday 1980-04-24 17:17:17 XJT 0
+-result=Thursday 1980-05-01 00:00:00 XJT 0
++tStamp=Thursday 1980-04-24 17:17:17 +06 0
++result=Thursday 1980-05-01 00:00:00 +06 0
+ wanted=Thursday 03:00:00
+
+ TZ=Indian/Christmas - Is it OK for this to be 7 AM? Note: does
+ not appear to have a DST or timezone transition.
+-tStamp=Thursday 1970-01-01 17:17:17 CXT 0
+-result=Sunday 1970-01-04 00:00:00 CXT 0
++tStamp=Thursday 1970-01-01 17:17:17 +07 0
++result=Sunday 1970-01-04 00:00:00 +07 0
+ wanted=Sunday 00:00:00
+
+ TZ=America/Santo_Domingo - Is it OK for this to be 0:30 AM? yes
+ tStamp=Sunday 1970-10-18 17:17:17 EST 0
+-result=Sunday 1970-10-25 00:30:00 EHDT 1
++result=Sunday 1970-10-25 00:30:00 -0430 1
+ wanted=Sunday 00:30:00
+
+ TZ=Pacific/Truk - Is it OK for this to be 10 AM? Note: does not
+ appear to have a DST or timezone transition.
+-tStamp=Thursday 1970-01-01 17:17:17 CHUT 0
+-result=Tuesday 1970-01-06 00:00:00 CHUT 0
++tStamp=Thursday 1970-01-01 17:17:17 +10 0
++result=Tuesday 1970-01-06 00:00:00 +10 0
+ wanted=Tuesday 00:00:00
+
+ TZ=Pacific/Ponape - Is it OK for this to be 11 AM? Note: does
+ not appear to have a DST or timezone transition.
+-tStamp=Thursday 1970-01-01 17:17:17 PONT 0
+-result=Monday 1970-01-05 00:00:00 PONT 0
++tStamp=Thursday 1970-01-01 17:17:17 +11 0
++result=Monday 1970-01-05 00:00:00 +11 0
+ wanted=Monday 00:00:00
+
+ TZ=America/Scoresbysund - Is it OK for this to be 2 AM? yes
+-tStamp=Sunday 1981-03-22 17:17:17 CGT 0
+-result=Sunday 1981-03-29 02:00:00 EGST 1
++tStamp=Sunday 1981-03-22 17:17:17 -02 0
++result=Sunday 1981-03-29 02:00:00 +00 1
+ wanted=Sunday 02:00:00
+
+ TZ=America/Guyana - Is it OK for this to be 0:45 AM? yes
+-tStamp=Thursday 1975-07-24 17:17:17 GYT 0
+-result=Thursday 1975-07-31 00:45:00 GYT 0
++tStamp=Thursday 1975-07-24 17:17:17 -0345 0
++result=Thursday 1975-07-31 00:45:00 -03 0
+ wanted=Thursday 00:45:00
+
+ TZ=Asia/Tehran - Is it OK for this to be 0:30 AM? yes
+-tStamp=Tuesday 1977-10-25 17:17:17 IRST 0
+-result=Tuesday 1977-11-01 00:30:00 IRST 0
++tStamp=Tuesday 1977-10-25 17:17:17 +0330 0
++result=Tuesday 1977-11-01 00:30:00 +04 0
+ wanted=Tuesday 00:30:00
+
+ TZ=Pacific/Tarawa - Is it OK for this to be Midday? Note: does
+ not appear to have a DST or timezone transition.
+-tStamp=Thursday 1970-01-01 17:17:17 GILT 0
+-result=Monday 1970-01-05 00:00:00 GILT 0
++tStamp=Thursday 1970-01-01 17:17:17 +12 0
++result=Monday 1970-01-05 00:00:00 +12 0
+ wanted=Monday 00:00:00
+
+ TZ=Africa/Monrovia - Is it OK for this to be 00:44:30 AM? yes
+-tStamp=Monday 1972-04-24 17:17:17 LRT 0
++tStamp=Monday 1972-04-24 17:17:17 %s 0
+ result=Monday 1972-05-01 00:44:30 GMT 0
+ wanted=Monday 00:44:30
+
+ TZ=Asia/Katmandu - Is it OK for this to 0:15 AM?. yes
+-tStamp=Wednesday 1985-12-25 17:17:17 IST 0
+-result=Wednesday 1986-01-01 00:15:00 NPT 0
++tStamp=Wednesday 1985-12-25 17:17:17 +0530 0
++result=Wednesday 1986-01-01 00:15:00 +0545 0
+ wanted=Wednesday 00:15:00
+
+ TZ=Pacific/Nauru - Is it OK for this to be 0:30? yes
+-tStamp=Tuesday 1979-04-24 17:17:17 NRT 0
+-result=Tuesday 1979-05-01 00:30:00 NRT 0
++tStamp=Tuesday 1979-04-24 17:17:17 +1130 0
++result=Tuesday 1979-05-01 00:30:00 +12 0
+ wanted=Tuesday 00:30:00
+
+ TZ=Pacific/Niue - Is it OK for this to be 0:30 AM? yes
+-tStamp=Sunday 1978-09-24 17:17:17 NUT 0
+-result=Sunday 1978-10-01 00:30:00 NUT 0
++tStamp=Sunday 1978-09-24 17:17:17 -1130 0
++result=Sunday 1978-10-01 00:30:00 -11 0
+ wanted=Sunday 00:30:00
+
+ TZ=Pacific/Port_Moresby - Is it OK for this to be 10 AM? No DST
+ or timezone transition.
+-tStamp=Thursday 1970-01-01 17:17:17 PGT 0
+-result=Thursday 1970-01-08 00:00:00 PGT 0
++tStamp=Thursday 1970-01-01 17:17:17 +10 0
++result=Thursday 1970-01-08 00:00:00 +10 0
+ wanted=Thursday 00:00:00
+
+ TZ=America/Miquelon - Is it OK for this to be 1 AM ? yes
+ tStamp=Thursday 1980-04-24 17:17:17 AST 0
+-result=Thursday 1980-05-01 01:00:00 PMST 0
++result=Thursday 1980-05-01 01:00:00 -03 0
+ wanted=Thursday 01:00:00
+
+ TZ=Pacific/Palau - Is it OK for this to be 9 AM? No DST or
+ timezone transition.
+-tStamp=Thursday 1970-01-01 17:17:17 PWT 0
+-result=Saturday 1970-01-03 00:00:00 PWT 0
++tStamp=Thursday 1970-01-01 17:17:17 +09 0
++result=Saturday 1970-01-03 00:00:00 +09 0
+ wanted=Saturday 00:00:00
+
+ TZ=Pacific/Funafuti - Is it OK for this to be midday? Note: does
+ not appear to have a DST or timezone transition.
+-tStamp=Thursday 1970-01-01 17:17:17 TVT 0
+-result=Wednesday 1970-01-07 00:00:00 TVT 0
++tStamp=Thursday 1970-01-01 17:17:17 +12 0
++result=Wednesday 1970-01-07 00:00:00 +12 0
+ wanted=Wednesday 00:00:00
+
+ TZ=Pacific/Wake - Is it OK for this to be midday? Note: does not
+ appear to have a DST or timezone transition.
+-tStamp=Thursday 1970-01-01 17:17:17 WAKT 0
+-result=Tuesday 1970-01-06 00:00:00 WAKT 0
++tStamp=Thursday 1970-01-01 17:17:17 +12 0
++result=Tuesday 1970-01-06 00:00:00 +12 0
+ wanted=Tuesday 00:00:00
+
+ TZ=Pacific/Wallis - Is it OK for this to be midday? Note: does
+ not appear to have a DST or timezone transition.
+-tStamp=Thursday 1970-01-01 17:17:17 WFT 0
+-result=Tuesday 1970-01-06 00:00:00 WFT 0
++tStamp=Thursday 1970-01-01 17:17:17 +12 0
++result=Tuesday 1970-01-06 00:00:00 +12 0
+ wanted=Tuesday 00:00:00
+
+ TZ=America/Paramaribo - Is it OK for this to be 0:30 AM? yes
+-tStamp=Monday 1984-09-24 17:17:17 SRT 0
+-result=Monday 1984-10-01 00:30:00 SRT 0
++tStamp=Monday 1984-09-24 17:17:17 -0330 0
++result=Monday 1984-10-01 00:30:00 -03 0
+ wanted=Monday 00:30:00
+diff --git a/ext/date/tests/date_modify-1.phpt b/ext/date/tests/date_modify-1.phpt
+index 7707b7f..c35e430 100644
+--- a/ext/date/tests/date_modify-1.phpt
++++ b/ext/date/tests/date_modify-1.phpt
+@@ -22,8 +22,8 @@ $ts->modify("+ 1 hour 1 second");
+ echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
+ ?>
+ --EXPECT--
+-Thu, 19 Aug 1993 23:59:59 KWAT
+-Sat, 21 Aug 1993 00:00:00 MHT
++Thu, 19 Aug 1993 23:59:59 -12
++Sat, 21 Aug 1993 00:00:00 +12
+ Sun, 27 Mar 2005 01:59:59 CET
+ Sun, 27 Mar 2005 03:00:00 CEST
+ Sun, 30 Oct 2005 01:59:59 CEST
+--
+2.1.4
+
+
+32-bits only fix
+
+
+diff -up ./ext/standard/tests/serialize/bug64146.phpt.old ./ext/standard/tests/serialize/bug64146.phpt
+--- ./ext/standard/tests/serialize/bug64146.phpt.old 2017-03-21 12:34:24.918527199 +0100
++++ ./ext/standard/tests/serialize/bug64146.phpt 2017-03-21 12:34:56.065685800 +0100
+@@ -53,8 +53,8 @@ print $a->a[1]->b->c . "\n";
+
+ ?>
+ Done
+---EXPECT--
++--EXPECTF--
+ Test
+ 1
+-2
++%d
+ Done
+diff -up ./ext/date/tests/bug53437_var3.phpt.old ./ext/date/tests/bug53437_var3.phpt
+--- ./ext/date/tests/bug53437_var3.phpt.old 2017-03-21 12:32:27.824930958 +0100
++++ ./ext/date/tests/bug53437_var3.phpt 2017-03-21 12:33:57.490387535 +0100
+@@ -40,7 +40,7 @@ object(DateInterval)#%d (15) {
+ ["special_amount"]=>
+ int(-1)
+ ["have_weekday_relative"]=>
+- int(9)
++ int(%d)
+ ["have_special_relative"]=>
+ int(0)
+ }
diff --git a/php.spec b/php.spec
index fef719b..1e8c717 100644
--- a/php.spec
+++ b/php.spec
@@ -138,7 +138,7 @@
%endif
#global rcver RC1
-%global rpmrel 4
+%global rpmrel 5
Summary: PHP scripting language for creating dynamic web sites
Name: %{?scl_prefix}php
@@ -204,7 +204,7 @@ Patch91: php-5.6.3-oci8conf.patch
# Fixes for tests (300+)
# Factory is droped from system tzdata
# Relax some tests with erratic results with system tzdata
-Patch300: php-5.6.24-datetests.patch
+Patch300: php-5.6.30-datetests.patch
# Revert changes for pcre < 8.34
Patch301: php-5.6.0-oldpcre.patch
@@ -1833,6 +1833,9 @@ fi
%changelog
+* Tue Mar 21 2017 Remi Collet <remi@remirepo.net> - 5.6.30-5
+- add patch for tests with tzdata 2017.1
+
* Fri Mar 17 2017 Remi Collet <remi@remirepo.net> - 5.6.30-4
- add patch for firebird configuration
- add patch for OpenSSL 1.1 on F26