mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
22 lines
493 B
PHP
22 lines
493 B
PHP
--TEST--
|
|
Trigger __call() in lieu of non visible methods when called via a callback.
|
|
--FILE--
|
|
<?php
|
|
class C {
|
|
protected function prot() { }
|
|
private function priv() { }
|
|
public function __call($name, $args) {
|
|
echo "In __call() for method $name()\n";
|
|
}
|
|
}
|
|
|
|
$c = new C;
|
|
call_user_func(array($c, 'none'));
|
|
call_user_func(array($c, 'prot'));
|
|
call_user_func(array($c, 'priv'));
|
|
?>
|
|
--EXPECTF--
|
|
In __call() for method none()
|
|
In __call() for method prot()
|
|
In __call() for method priv()
|