blob: 029efcfe635fa68e044f9de8af0e2c605276dcdb (
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
|
--TEST--
Bug #45744 (Case sensitive callback behaviour)
--FILE--
<?php
class Foo {
public function __construct(array $data) {
var_dump(array_map(array($this, 'callback'), $data));
}
private function callback($value) {
if (!is_array($value)) {
return stripslashes($value);
}
return array_map(array($this, 'callback'), $value);
}
}
class Bar extends Foo {
}
new Bar(array());
class Foo2 {
public function __construct(array $data) {
var_dump(array_map(array($this, 'callBack'), $data));
}
private function callBack($value) {
}
}
class Bar2 extends Foo2 {
}
new Bar2(array());
--EXPECT--
array(0) {
}
array(0) {
}
|