Tag Archives: call_user_func_array

Late Static Bindings in PHP Callbacks

No idea if this is ever useful, but just found this not documented in the PHP manual so far (and the Callbacks entry looks already chaotic so I don’t edit it right now): You can write callbacks of static class … Continue reading

Posted in PHP Development, Pressed, The Know Your Language Department | Tagged , , , , , , , , , , , | 1 Comment

Call_user_func_array(), PHP 5.3 and Passing by Reference

Fun fact: If call_user_func_array() is used to call a function that expects a parameter passed by reference you need to pass it as a reference in the parameter array. Otherwise the callback will not be executed, call_user_func_array() will return false … Continue reading

Posted in Hacking The Core, PHP Development, Pressed | Tagged , , , , , | Leave a comment