14. 04.

今天给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 搞定,好运!


作者: hao32 | 可以转载, 转载时务必以超链接形式标明文章原始出处和作者信息及版权声明
网址:http://www.hao32.com/unix-linux/519.html

Tags:

有一条对 „解决error: 'struct _zend_compiler_globals' has no member named 'extended_info'“ 的评论

  1. 加加 发表评论说:

    呵呵,good!用jiathis分享之!

发表评论: