summaryrefslogtreecommitdiff
path: root/Zend/tests/bug51421.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug51421.phpt')
-rw-r--r--Zend/tests/bug51421.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/Zend/tests/bug51421.phpt b/Zend/tests/bug51421.phpt
new file mode 100644
index 0000000..bc1758c
--- /dev/null
+++ b/Zend/tests/bug51421.phpt
@@ -0,0 +1,18 @@
+--TEST--
+Bug #51421 (Abstract __construct constructor argument list not enforced)
+--FILE--
+<?php
+
+class ExampleClass {}
+
+abstract class TestInterface {
+ abstract public function __construct(ExampleClass $var);
+}
+
+class Test extends TestInterface {
+ public function __construct() {}
+}
+
+?>
+--EXPECTF--
+Fatal error: Declaration of Test::__construct() must be compatible with TestInterface::__construct(ExampleClass $var) in %s on line %d