PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0 Fix
July 2nd, 2010
Warning: This post is 13 years old. Some of this information may be out of date.
When I upgraded my desktop to Ubuntu 10.04 (Lucid Lynx) I also upgraded my PHP version to 5.3. Apart from a few warnings with some deprecated functions (the main cuplrit being the ereg functions) all went well.
When using the Zend Tool command from the command line I started getting warnings about xdebug:
andrew@andrew: ~$ zf show version PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0 Zend Framework Version: 1.10.2
To fix this you need to change your extension loader in /etc/php5/cond.d/xdebug.ini to use zend_extension_ts:
extension=xdebug.so ;zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so zend_extension_ts=/usr/lib/php5/20090626+lfs/xdebug.so xdebug.remote_enable=1 xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.remote_handler=dbgp