From a8e92e361f82fdd7485b5f7d2dc1c0ccd8edca62 Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Thu, 22 Oct 2020 12:48:12 +0200 Subject: [PATCH] Run arginfo/ZPP verification tests in strict mode as well Closes GH-6370 --- Zend/tests/arginfo_zpp_mismatch.inc | 39 ++++++++++ Zend/tests/arginfo_zpp_mismatch.phpt | 34 +-------- Zend/tests/arginfo_zpp_mismatch_strict.phpt | 85 +++++++++++++++++++++ 3 files changed, 127 insertions(+), 31 deletions(-) create mode 100644 Zend/tests/arginfo_zpp_mismatch.inc create mode 100644 Zend/tests/arginfo_zpp_mismatch_strict.phpt diff --git a/Zend/tests/arginfo_zpp_mismatch.inc b/Zend/tests/arginfo_zpp_mismatch.inc new file mode 100644 index 0000000000..2207d76db4 --- /dev/null +++ b/Zend/tests/arginfo_zpp_mismatch.inc @@ -0,0 +1,39 @@ + +--FILE-- +newInstanceWithoutConstructor(); + } catch (Throwable) { + continue; + } + + foreach (get_class_methods($class) as $method) { + test([$obj, $method]); + } +} + +// var_dump() and debug_zval_dump() print all arguments +?> +===DONE=== +--EXPECT-- +===DONE=== -- 2.50.1