diff options
Diffstat (limited to 'Zend/tests/objects_009.phpt')
| -rw-r--r-- | Zend/tests/objects_009.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Zend/tests/objects_009.phpt b/Zend/tests/objects_009.phpt new file mode 100644 index 0000000000..67611f14e2 --- /dev/null +++ b/Zend/tests/objects_009.phpt @@ -0,0 +1,23 @@ +--TEST-- +method overloading with different method signature +--INI-- +error_reporting=8191 +--FILE-- +<?php + +class test { + function foo(Test $arg) {} +} + +class test2 extends test { + function foo(Test $arg) {} +} + +class test3 extends test { + function foo($arg) {} +} + +echo "Done\n"; +?> +--EXPECTF-- +Fatal error: Declaration of test3::foo() must be compatible with that of test::foo() in %s on line %d |
