Error: PHP Warning:xdebug must is loaded as a Zend extension in Unknown on line 0____php

Source: Internet
Author: User
Tags bz2 ereg mssql spl openssl snmp tidy zend
andymacbookpro:~ andy$ php-m
PHP Warning:xdebug must is loaded as a Zend extension in Unknown on line 0
[PHP Modules]
Bcmath
bz2
Calendar
Core
CType
Curl
Date
Dba
Dom
Ereg
Exif
FileInfo
Filter
Ftp
Gd
Hash
Iconv
Json
Ldap
Libxml
Mbstring
Mssql
Mysql
Mysqli
Mysqlnd
Openssl
Pcre
Pdo
Pdo_dblib
Pdo_mysql
Pdo_odbc
Pdo_sqlite
Phar
Posix
ReadLine
Redis
Reflection
Session
Shmop
SimpleXML
Snmp
Soap
Sockets
Spl
Sqlite3
Standard
Sysvmsg
Sysvsem
Sysvshm
Tidy
Tokenizer
Wddx
Xdebug
Xml
XmlReader
Xmlrpc
XmlWriter
Xsl
Zip
Zlib


[Zend Modules]


andymacbookpro:~ andy$



Now we're going to solve this problem:


We find our php.ini, my in:/private/etc/php.ini


Where to find the Xdebug expansion loading office:

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


Then we restart Apache:

sudo apachectl restart


And then look at the PHP extensions:


andymacbookpro:~ andy$ php-m
[PHP Modules]
Bcmath
bz2
Calendar
Core
CType
Curl
Date
Dba
Dom
Ereg
Exif
FileInfo
Filter
Ftp
Gd
Hash
Iconv
Json
Ldap
Libxml
Mbstring
Mssql
Mysql
Mysqli
Mysqlnd
Openssl
Pcre
Pdo
Pdo_dblib
Pdo_mysql
Pdo_odbc
Pdo_sqlite
Phar
Posix
ReadLine
Redis
Reflection
Session
Shmop
SimpleXML
Snmp
Soap
Sockets
Spl
Sqlite3
Standard
Sysvmsg
Sysvsem
Sysvshm
Tidy
Tokenizer
Wddx
Xdebug
Xml
XmlReader
Xmlrpc
XmlWriter
Xsl
Zip
Zlib


[Zend Modules]
Xdebug


andymacbookpro:~ andy$


Okay, OK, we've seen that Xdebug has been successfully loaded into the Zend modules.

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.