From 4cf7c27103cdd62893b3bf78065ad1819cf331ad Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 15 Dec 2019 09:12:19 +0100 Subject: - add upstream patches for 7.3 and 7.4 - disable ZTS for now --- 06897991d042115185fd98ff4e79569fbe51e0bf.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 06897991d042115185fd98ff4e79569fbe51e0bf.patch (limited to '06897991d042115185fd98ff4e79569fbe51e0bf.patch') diff --git a/06897991d042115185fd98ff4e79569fbe51e0bf.patch b/06897991d042115185fd98ff4e79569fbe51e0bf.patch new file mode 100644 index 0000000..ad74ac6 --- /dev/null +++ b/06897991d042115185fd98ff4e79569fbe51e0bf.patch @@ -0,0 +1,25 @@ +From 06897991d042115185fd98ff4e79569fbe51e0bf Mon Sep 17 00:00:00 2001 +From: USAMI Kenta +Date: Thu, 11 Jul 2019 17:36:55 +0900 +Subject: [PATCH] Add temporary tests to detect class errors + +--- + tests/immutable_override_008.phpt | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/tests/immutable_override_008.phpt b/tests/immutable_override_008.phpt +index 8ecec38..7addcf3 100644 +--- a/tests/immutable_override_008.phpt ++++ b/tests/immutable_override_008.phpt +@@ -35,6 +35,11 @@ var_dump($dt0->format("Y-m-d H:i:s.uP")); + foreach ($tests_args as $args) { + timecop_freeze($dt0); + $dt1 = call_user_func_array(array("DateTimeImmutable","createFromFormat"), $args); ++ if (!$dt1 instanceof DateTimeImmutable) { ++ // TODO: output an appropriate message ++ echo get_class($dt1), "\n"; ++ } ++ + var_dump($dt1->format("Y-m-d H:i:s.uP")); + while (true) { + /* test for equality between timecop_date_create_from_format() and date_create_from_format() */ -- cgit