diff options
author | Remi Collet <remi@remirepo.net> | 2019-12-15 09:12:19 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2019-12-15 09:12:19 +0100 |
commit | 4cf7c27103cdd62893b3bf78065ad1819cf331ad (patch) | |
tree | ab21e8ccb15a26507768c7d1094b6be2fce8294b /06897991d042115185fd98ff4e79569fbe51e0bf.patch | |
parent | 72eec8064d05740635548e1fa3e15e0206b2e564 (diff) |
- add upstream patches for 7.3 and 7.4
- disable ZTS for now
Diffstat (limited to '06897991d042115185fd98ff4e79569fbe51e0bf.patch')
-rw-r--r-- | 06897991d042115185fd98ff4e79569fbe51e0bf.patch | 25 |
1 files changed, 25 insertions, 0 deletions
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 <tadsan@zonu.me> +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() */ |