string(27) "B::func2: This should work!" string(27) "B::func3: This should work!" Warning: call_user_func_array() expects parameter 1 to be a valid callback, cannot access private method B::func22() in /opt/php-5.6.40/Zend/tests/bug48770_2.php on line 22 Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'B' does not have a method 'inexistent' in /opt/php-5.6.40/Zend/tests/bug48770_2.php on line 23