php-src/Zend/tests/objects_007.phpt
Nikita Popov 8d00385871 Reclassify E_STRICT notices
Per RFC https://wiki.php.net/rfc/reclassify_e_strict

While reviewing this, found that there are still three E_STRICTs
left in libraries - need to discuss those.
2015-04-01 11:17:55 +02:00

25 lines
437 B
PHP

--TEST--
method overloading with different method signature
--INI--
error_reporting=8191
--FILE--
<?php
class test {
function foo($arg, &$arg2 = NULL) {}
}
class test2 extends test {
function foo($arg, &$arg2 = NULL) {}
}
class test3 extends test {
function foo($arg, &$arg2) {}
}
echo "Done\n";
?>
--EXPECTF--
Warning: Declaration of test3::foo() should be compatible with test::foo($arg, &$arg2 = NULL) in %s on line %d
Done