PHP扩展开发报错解决[error: ‘PHP_FE_END’ undeclared here (not in a function)] .
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然后再编译即可!