PHP扩展开发报错解决[error: ‘PHP_FE_END’ undeclared here (not in a function)] .

PHP扩展开发报错解决[error: ‘PHP_FE_END’ undeclared here (not in a function)] .

解决方法:进到php包的目录

sed -i 's|PHP_FE_END|{NULL,NULL,NULL}|' ./ext/**/*.c

sed -i 's|ZEND_MOD_END|{NULL,NULL,NULL}|' ./ext/**/*.c
例如:

sed -i 's|PHP_FE_END|{NULL,NULL,NULL}|' ./ext/pcntl/*.c

sed -i 's|ZEND_MOD_END|{NULL,NULL,NULL}|' ./ext/pcntl/*.c
然后再编译即可!

posted @ 2013-11-22 00:22  傲雪星枫  阅读(1159)  评论(0)    收藏  举报