__callStatic(), call_user_func_array(), references, and PHP 5.3.1
问题 I've been reading around on SO, and elsewhere, however I can't seem to find anything conclusive. Is there any way to effectively carry references through this call stack, resulting in the desired functionality as described in the example below? While the example doesn't try to solve it, it certainly illustrates the problem: class TestClass{ // surely __call would result similarly public static function __callStatic($function, $arguments){ return call_user_func_array($function, $arguments); }