php-src/Zend/tests/objects_005.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
372 B
PHP

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