summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug65006.phpt
blob: 1393936c5a1a7e02b3da2ea2455961bdd5823f38 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--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"
  }
}