Today, the error info like title of this blog shows up when running php-cli command in Debian.
Check the configuration in /etc/php5/conf.d/xdebug.conf and find its content as below:
; configuration for php xdebug module
extension=xdebug.so
As the error info tells, the xdebug IS loaded as 'extension' instead of 'zend_extension'. So change it to:
; configuration for php xdebug module
; extension=xdebug.so
;load the xdebug as a zend_extension
zend_extension=xdebug.so