Is it possible to overwrite a function in PHP
Edit To address comments that this answer doesn’t directly address the original question. If you got here from a Google Search, start here There is a function available called override_function that actually fits the bill. However, given that this function is part of The Advanced PHP Debugger extension, it’s hard to make an argument that … Read more