From 6c9c44905ea2b65c578e83c017565e3fed484078 Mon Sep 17 00:00:00 2001 From: Levi Morrison Date: Sun, 15 Jun 2014 16:10:40 -0600 Subject: [PATCH] Added tests for bug 67436 --- Zend/tests/bug67436/a.php | 10 ++++++++ Zend/tests/bug67436/b.php | 8 +++++++ Zend/tests/bug67436/bug67436.phpt | 26 +++++++++++++++++++++ Zend/tests/bug67436/bug67436_nohandler.phpt | 24 +++++++++++++++++++ Zend/tests/bug67436/c.php | 5 ++++ 5 files changed, 73 insertions(+) create mode 100644 Zend/tests/bug67436/a.php create mode 100644 Zend/tests/bug67436/b.php create mode 100644 Zend/tests/bug67436/bug67436.phpt create mode 100644 Zend/tests/bug67436/bug67436_nohandler.phpt create mode 100644 Zend/tests/bug67436/c.php diff --git a/Zend/tests/bug67436/a.php b/Zend/tests/bug67436/a.php new file mode 100644 index 0000000000..c560c2db7d --- /dev/null +++ b/Zend/tests/bug67436/a.php @@ -0,0 +1,10 @@ +test(); + +--EXPECT-- +b::test() +a::test(c::TESTCONSTANT) diff --git a/Zend/tests/bug67436/bug67436_nohandler.phpt b/Zend/tests/bug67436/bug67436_nohandler.phpt new file mode 100644 index 0000000000..464f711532 --- /dev/null +++ b/Zend/tests/bug67436/bug67436_nohandler.phpt @@ -0,0 +1,24 @@ +--TEST-- +bug67436: E_STRICT instead of custom error handler + +--INI-- +error_reporting=-1 + +--FILE-- +test(); + +--EXPECTF-- +Strict Standards: Declaration of b::test() should be compatible with a::test($arg = c::TESTCONSTANT) in %s/bug67436/b.php on line %d +b::test() +a::test(c::TESTCONSTANT) diff --git a/Zend/tests/bug67436/c.php b/Zend/tests/bug67436/c.php new file mode 100644 index 0000000000..47c848bfa0 --- /dev/null +++ b/Zend/tests/bug67436/c.php @@ -0,0 +1,5 @@ +