blob: 61b45d40abb4f661a57990878f01f34d9ee81f21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--TEST--
Bug #44144 (spl_autoload_functions() should return object instance when appropriate)
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
--FILE--
<?php
class Foo {
public function nonstaticMethod() {}
}
$foo = new Foo;
spl_autoload_register(array($foo, 'nonstaticMethod'));
$funcs = spl_autoload_functions();
var_dump($funcs);
?>
--EXPECTF--
array(1) {
[0]=>
array(2) {
[0]=>
object(Foo)#%d (0) {
}
[1]=>
string(15) "nonstaticMethod"
}
}
|