Recently after provisioning a new server I started noticing numerous PHP Warnings. However, they did not affect the overall operation of my command line scripts other than they would run a bit slower while PHP determined this warning. Fortunately the fix is rather simple and fixing these sorts of trivial errors actually helps boost performance. All that you need to do is edit the extensions.ini usually found in /usr/local/etc/php/ on a FreeBSD system.
PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0
Change the line that loads your xdebug module
extension=xdebug.so
to a zend load like the one below just ensure that you have the absolute path to the module correct.
zend_extension=/usr/local/lib/php/20121212-debug/xdebug.so
That is all there is to it. I know this was a short one, but I promise the stuff that I have been working on lately is going to be worth it. It doesn’t help that I’ve had to move to a new server as well over the last few weeks so please bear with me as I ramp up the good stuff.
Leave a Reply