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
然後再編譯即可!
查看本欄目