2009-01-14 11:56:24 +00:00
|
|
|
--TEST--
|
|
|
|
Trigger __call() in lieu of non visible methods when called via a callback.
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
class C {
|
2020-02-03 21:52:20 +00:00
|
|
|
protected function prot() { }
|
|
|
|
private function priv() { }
|
|
|
|
public function __call($name, $args) {
|
2009-01-14 11:56:24 +00:00
|
|
|
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'));
|
|
|
|
?>
|
2018-02-19 08:59:41 +00:00
|
|
|
--EXPECT--
|
2009-01-14 11:56:24 +00:00
|
|
|
In __call() for method none()
|
|
|
|
In __call() for method prot()
|
|
|
|
In __call() for method priv()
|