PHP Warning:xdebug must be loaded as a Zend extension in Unknown on line 0

Source: Internet
Author: User
Tags php tutorial zend
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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.