mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
16 lines
226 B
PHP
16 lines
226 B
PHP
--TEST--
|
|
First class callables and &__call()
|
|
--FILE--
|
|
<?php
|
|
class Foo {
|
|
public function &__call($method, $args) {
|
|
return $method;
|
|
}
|
|
}
|
|
|
|
$foo = new Foo;
|
|
$bar = $foo->bar(...);
|
|
echo $bar(),"\n";
|
|
?>
|
|
--EXPECT--
|
|
bar
|