lygyh9985825 发表于 2018-12-20 12:14:36

PHP源码安装mcrypt扩展error: ‘PHP_FE_END’ undeclared here (not in a function)错误处理

  问题描述:
  make时提示error: ‘PHP_FE_END’ undeclared here (not in a function)错误。
  解决办法:
  1、切换到php的源码目录,如:php-5.3.18/
  2、执行下面两行
  # sed -i 's|PHP_FE_END|{NULL,NULL,NULL}|' ./ext/**/*.c
# sed -i 's|ZEND_MOD_END|{NULL,NULL,NULL}|' ./ext/**/*.c
  3.切换到mcrypt目录,如php-5.3.18/ext/mcrypt/。再次执行make命令,一切恢复正常。



页: [1]
查看完整版本: PHP源码安装mcrypt扩展error: ‘PHP_FE_END’ undeclared here (not in a function)错误处理