24 lines
410 B
PHP
24 lines
410 B
PHP
--TEST--
|
|
Bug #71236: Second call of spl_autoload_register() does nothing if it has no arguments
|
|
--FILE--
|
|
<?php
|
|
|
|
spl_autoload_register(function ($class) {});
|
|
spl_autoload_register();
|
|
var_dump(spl_autoload_functions());
|
|
|
|
?>
|
|
--EXPECT--
|
|
array(2) {
|
|
[0]=>
|
|
object(Closure)#1 (1) {
|
|
["parameter"]=>
|
|
array(1) {
|
|
["$class"]=>
|
|
string(10) "<required>"
|
|
}
|
|
}
|
|
[1]=>
|
|
string(12) "spl_autoload"
|
|
}
|