mirror of
https://github.com/php/php-src.git
synced 2024-09-29 05:46:06 +00: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
471 B
PHP
25 lines
471 B
PHP
--TEST--
|
|
bug67436: E_STRICT instead of custom error handler
|
|
|
|
--INI--
|
|
error_reporting=-1
|
|
|
|
--FILE--
|
|
<?php
|
|
|
|
spl_autoload_register(function($classname) {
|
|
if (in_array($classname, array('a','b','c'))) {
|
|
require_once __DIR__ . "/{$classname}.php";
|
|
}
|
|
});
|
|
|
|
a::staticTest();
|
|
|
|
$b = new b();
|
|
$b->test();
|
|
|
|
--EXPECTF--
|
|
Warning: Declaration of b::test() should be compatible with a::test($arg = c::TESTCONSTANT) in %s%ebug67436%eb.php on line %d
|
|
b::test()
|
|
a::test(c::TESTCONSTANT)
|