今天给php增加apd(Advanced PHP debugger)的扩展,发现如下错误:
/usr/local/src/apd-1.0.1/php_apd.c:967: error: ‘struct _zend_compiler_globals’ has no member named ‘extended_info’
后google到:http://lists.freebsd.org/pipermail/freebsd-ports/2010-April/060557.html
前因后果不再阐述,见下文:
2) error: ‘struct _zend_compiler_globals’ has no member named
‘extended_info’The member has been renamed to ‘compiler_options’ to hold additional
variables. So, for example, if the code looks like:CG(extended_info) = 1;
you can modify it in this way:
CG(compiler_options) |= ZEND_COMPILE_EXTENDED_INFO;
编辑967行修改之:
vi /usr/local/src/apd-1.0.1/php_apd.c +967
把CG(extended_info) = 1;
修改为:
CG(compiler_options) |= ZEND_COMPILE_EXTENDED_INFO;
重新make,make install,最后zend_extension = /path最好绝对路径/apd.so 搞定,好运!
加加
呵呵,good!用jiathis分享之!