Skip to content

Commit ef9bf62

Browse files
committed
Add test for bug #71236
1 parent 896ac47 commit ef9bf62

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

ext/spl/tests/bug71236.phpt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
--TEST--
2+
Bug #71236: Second call of spl_autoload_register() does nothing if it has no arguments
3+
--FILE--
4+
<?php
5+
6+
spl_autoload_register(function ($class) {});
7+
spl_autoload_register();
8+
var_dump(spl_autoload_functions());
9+
10+
?>
11+
--EXPECT--
12+
array(2) {
13+
[0]=>
14+
object(Closure)#1 (1) {
15+
["parameter"]=>
16+
array(1) {
17+
["$class"]=>
18+
string(10) "<required>"
19+
}
20+
}
21+
[1]=>
22+
string(12) "spl_autoload"
23+
}

0 commit comments

Comments
 (0)