I have inherited a moderately large PHP codebase. In order to better understand how it works, I'd like to be able to print to logs a function or file trace whenever I hit a page, so I can correlate pages with source code. Are there any tools I can install? I have root on the server, and so have the ability to install anything as far as Apache or PHP add-ons goes.
I have heard about XDebug, but when reading up on installation, I've discovered that it is not compatible with Zend Optimizer. Unfortunately, this codebase requires Zend Optimizer, so XDebug does not appear to be an option for me at this time.
I'm developing under Linux.