andy@andymacbookpro:~$ php-v
PHP Warning:xdebug must be loaded as a Zend extension in Unknown on line 0
PHP 5.4.30 (CLI) (Built:jul 29 2014 23:43:29)
Copyright (c) 1997-2014 the PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
Edit PHP.ini
sudo vim/private/php.ini
Will:
Extension=/usr/local/cellar/php54-xdebug/2.2.5/xdebug.so
Modified to:
zend_extension=/usr/local/cellar/php54-xdebug/2.2.5/xdebug.so
And then we'll look at it, just fine:
andy@andymacbookpro:/private/etc$ php-v
PHP 5.4.30 (CLI) (Built:jul 29 2014 23:43:29)
Copyright (c) 1997-2014 the PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
With Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans
andy@andymacbookpro:/private/etc$
More about: http://blog.163.com/lgh_2002/blog/static/440175262010910103342213/
Zend_extension load the PHP extension with a full path, while the extension can be loaded with a relative extension_dir path.
The above describes the PHP warning:xdebug must be loaded as a Zend extension in Unknown on line 0, including aspects of the content, I hope to be interested in PHP tutorial friends helpful.