php模块无法编译.无法识别"static function_entry"

Vas*_*liy 10 php module compilation

我最近重新编译了我的PHP和突然旧代码(连同来自互联网的示例)停止编译.

这个确切的例子不编译.

有问题的代码片段:

static function_entry hello_functions[] = {
  {NULL, NULL, NULL}
};
Run Code Online (Sandbox Code Playgroud)

这是错误:

/home/user/php_module/test_module/hello.c:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘hello_functions’
Run Code Online (Sandbox Code Playgroud)

可能是什么问题呢?

Vas*_*liy 20

解决方案:
这是新的PHP 5.4的差异在这里找到答案

不得不function_entry用静电替换zend_function_entry

现在工作.