mirror of
https://github.com/php/php-src.git
synced 2024-11-27 20:03:40 +08:00
33 lines
258 B
PHP
33 lines
258 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
|