mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
8d00385871
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.
25 lines
372 B
PHP
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($arg) {}
|
|
}
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Declaration of test3::foo() should be compatible with test::foo() in %s on line %d
|
|
Done
|