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