mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
4d034b1a1e
I always use a.php or b.php for local testing, this diff makes the test more stable
25 lines
478 B
PHP
25 lines
478 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--
|
|
Strict Standards: Declaration of b::test() should be compatible with a::test($arg = c::TESTCONSTANT) in %s/bug67436/b.php on line %d
|
|
b::test()
|
|
a::test(c::TESTCONSTANT)
|