您好,欢迎访问一九零五行业门户网

php-screw在php5.4.6中编译失败问题

今天在要php5.4.6中编译安装一个php-screw了,但是怎么操作都不成功了,后来看到有朋友博客写到一篇关于php-screw在php5.4.6上编译失败问题的解决方案,于是拿过来试了一下没想到还真解决了,下面我把文章拿出来与大家一起分享.
php-screw版本问题,报错
make /bin/sh /root/php_screw-1.5/libtool --mode=compile cc -i. -i/root/php_screw-1.5 -dphp_atom_inc -i/root/php_screw-1.5/include -i/root/php_screw-1.5/main -i/root/php_screw-1.5 -i/usr/include/php -i/usr/include/php/main -i/usr/include/php/tsrm -i/usr/include/php/zend -i/usr/include/php/ext -i/usr/include/php/ext/date/lib -dhave_config_h -g -o2 -c /root/php_screw-1.5/php_screw.c -o php_screw.lo libtool: compile: cc -i. -i/root/php_screw-1.5 -dphp_atom_inc -i/root/php_screw-1.5/include -i/root/php_screw-1.5/main -i/root/php_screw-1.5 -i/usr/include/php -i/usr/include/php/main -i/usr/include/php/tsrm -i/usr/include/php/zend -i/usr/include/php/ext -i/usr/include/php/ext/date/lib -dhave_config_h -g -o2 -c /root/php_screw-1.5/php_screw.c -fpic -dpic -o .libs/php_screw.o /root/php_screw-1.5/php_screw.c: in function 'zm_startup_php_screw': /root/php_screw-1.5/php_screw.c:124: error: 'struct _zend_compiler_globals' has no member named 'extended_info' /root/php_screw-1.5/php_screw.c: in function 'zm_shutdown_php_screw': /root/php_screw-1.5/php_screw.c:133: error: 'struct _zend_compiler_globals' has no member named 'extended_info' make: *** [php_screw.lo] error 1
修改php-screw.c
修改 cg(extended_info) = 1;为 cg(compiler_options) |= zend_compile_extended_info;
文章网址:
随意转载^^但请附上教程地址。
其它类似信息

推荐信息