From: Andrei Zmievski Date: Wed, 7 Jan 2009 22:37:25 +0000 (+0000) Subject: MFB X-Git-Tag: php-5.4.0alpha1~191^2~4602 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78aff40ad6cba09f42cfac7ddfde2c0c9c1c7ff5;p=php MFB --- diff --git a/Zend/tests/access_modifiers_011.phpt b/Zend/tests/access_modifiers_011.phpt new file mode 100644 index 0000000000..4ed154f6f6 --- /dev/null +++ b/Zend/tests/access_modifiers_011.phpt @@ -0,0 +1,39 @@ +--TEST-- +__call() for private/protected methods +--FILE-- +$var; + } + public function __call($func, array $args = array()) + { + return call_user_func_array(array($this, $func), $args); + } +} + +$a = new A(); +echo $a->var1,"\n"; +echo $a->var2,"\n"; +echo $a->func1(),"\n"; +echo $a->func2(),"\n"; + +?> +--EXPECTF-- +var1 value +var2 value +in func1 +in func2