mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
33 lines
270 B
PHP
33 lines
270 B
PHP
--TEST--
|
|
Testing dynamic calls
|
|
--FILE--
|
|
<?php
|
|
|
|
class foo {
|
|
static public function a() {
|
|
print "ok\n";
|
|
}
|
|
}
|
|
|
|
$a = 'a';
|
|
$b = 'a';
|
|
|
|
$class = 'foo';
|
|
|
|
foo::a();
|
|
foo::$a();
|
|
foo::$$b();
|
|
|
|
$class::a();
|
|
$class::$a();
|
|
$class::$$b();
|
|
|
|
?>
|
|
--EXPECT--
|
|
ok
|
|
ok
|
|
ok
|
|
ok
|
|
ok
|
|
ok
|