blob: b0125de08501d020e15f9c6fbcabcd653e68d412 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--TEST--
Bug #25652 (Calling Global functions dynamically fails from Class scope)
--FILE--
<?php
function testfunc ($var) {
echo "testfunc $var\n";
}
class foo {
public $arr = array('testfunc');
function bar () {
$this->arr[0]('testvalue');
}
}
$a = new foo ();
$a->bar ();
?>
--EXPECT--
testfunc testvalue
|