在php中会有2种扩展
一般的mysql都属于extension 而 像xdebug却是zend_extension
错误提示
NOTICE: PHP message: PHP Warning: Xdebug MUST be loaded as a Zend extension
分析:
mysql扩展配置如下
extension=mysql.so 即可
xdebug 扩展如下 注意要添加红色的路径 否则就会出错
并且还有开启html_errors=on
[Xdebug]
zend_extension = /usr/lib64/php/modules/xdebug.so
xdebug.auto_trace = on
xdebug.auto_profile = on
xdebug.collect_params = on
xdebug.collect_return = on
xdebug.profiler_enable = on
xdebug.trace_output_dir = "/tmp"
xdebug.profiler_output_dir = "/tmp"
xdebug.dump.GET = *
xdebug.dump.POST = *
xdebug.dump.COOKIE = *
xdebug.dump.SESSION = *
xdebug.var_display_max_data = 4056
原文:http://my.oschina.net/u/554046/blog/296093