summaryrefslogtreecommitdiff
path: root/tests/lang/bug25652.phpt
blob: 09cfc181977b057eb35916928de798a74b560640 (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