xref: /PHP-5.4/Zend/tests/025.phpt (revision 3d2a5940)
1--TEST--
2Testing dynamic calls
3--FILE--
4<?php
5
6class foo {
7	static public function a() {
8		print "ok\n";
9	}
10}
11
12$a = 'a';
13$b = 'a';
14
15$class = 'foo';
16
17foo::a();
18foo::$a();
19foo::$$b();
20
21$class::a();
22$class::$a();
23$class::$$b();
24
25?>
26--EXPECT--
27ok
28ok
29ok
30ok
31ok
32ok
33