title: How to overwrite existing PHP functions without APD?
body: <p>I would like to overwrite a couple of functions that are already declared in PHP. The application I am working with is full of legacy code (including calls to <code>eval()</code>) so just replacing the identifier where the functions are called in the code might not be enough.</p>
  
  <p>Is it possible to change a function that has already been declared, without using the <a href="http://php.net/apd" rel="nofollow noreferrer">Advanced PHP Debugger</a> in PHP5?</p>