1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 17:38:14 +02:00
Files
2026-01-20 20:54:38 +00:00

30 lines
522 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());
?>
--EXPECTF--
array(2) {
[0]=>
object(Closure)#%d (4) {
["name"]=>
string(%d) "{closure:%s:%d}"
["file"]=>
string(%d) "%s"
["line"]=>
int(%d)
["parameter"]=>
array(1) {
["$class"]=>
string(10) "<required>"
}
}
[1]=>
string(12) "spl_autoload"
}