1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00
Files
archived-php-src/ext/spl/tests/bug65006.phpt
Nikita Popov c5401854fc Run tidy
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
2020-09-18 14:28:32 +02:00

42 lines
695 B
PHP

--TEST--
Bug #65006: spl_autoload_register fails with multiple callables using self, same method
--FILE--
<?php
class first {
public static function init() {
spl_autoload_register(array('self','load'));
}
public static function load($class) {}
}
class second {
public static function init() {
spl_autoload_register(array('self','load'));
}
public static function load($class){}
}
first::init();
second::init();
var_dump(spl_autoload_functions());
?>
--EXPECT--
array(2) {
[0]=>
array(2) {
[0]=>
string(5) "first"
[1]=>
string(4) "load"
}
[1]=>
array(2) {
[0]=>
string(6) "second"
[1]=>
string(4) "load"
}
}