diff options
Diffstat (limited to 'Zend/tests/objects_008.phpt')
-rw-r--r-- | Zend/tests/objects_008.phpt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Zend/tests/objects_008.phpt b/Zend/tests/objects_008.phpt new file mode 100644 index 0000000..f6d5826 --- /dev/null +++ b/Zend/tests/objects_008.phpt @@ -0,0 +1,24 @@ +--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(Test3 $arg) {} +} + +echo "Done\n"; +?> +--EXPECTF-- +Strict Standards: Declaration of test3::foo() should be compatible with test::foo(Test $arg) in %s on line %d +Done |