xref: /PHP-5.4/Zend/tests/objects_003.phpt (revision c58f2543)
1--TEST--
2method overloading with different method signature
3--INI--
4error_reporting=8191
5--FILE--
6<?php
7
8class test {
9	function foo($arg) {}
10}
11
12class test2 extends test {
13	function foo($arg) {}
14}
15
16class test3 extends test {
17	function foo($arg, $arg2) {}
18}
19
20echo "Done\n";
21?>
22--EXPECTF--
23Strict Standards: Declaration of test3::foo() should be compatible with test::foo($arg) in %s on line %d
24Done
25