使用C扩展PHP。使用ext_skel创建第一个环境时出现awk语法错误

使用C扩展PHP。使用ext_skel创建第一个环境时出现awk语法错误,php,awk,Php,Awk,使用C扩展PHP。使用ext_skel创建第一个环境时出现awk语法错误 错误在上面: enter code here awk: syntax error at source line 256 source file /Users/Princelo/Downloads/php-5.5.14/ext/skeleton/create_stubs context is if (!stubs) print "" > extname >>

使用C扩展PHP。使用ext_skel创建第一个环境时出现awk语法错误

错误在上面:

enter code here
awk: syntax error at source line 256 source file /Users/Princelo/Downloads/php-5.5.14/ext/skeleton/create_stubs
 context is
                         if (!stubs) print "" > extname >>>  "/function_warning" <<<
awk: illegal statement at source line 257 source file /Users/Princelo/Downloads/php-5.5.14/ext/skeleton/create_stubs
awk: syntax error at source line 267 source file /Users/Princelo/Downloads/php-5.5.14/ext/skeleton/create_stubs
rm: function_entries: No such file or directory
rm: function_declarations: No such file or directory
rm: function_stubs: No such file or directory
enter code here
第256行是

if (!stubs) print "" > extname "/function_warning"
右侧的表达式必须用括号括起来:

if (!stubs) print "" > ( extname "/function_warning" )

因为评估的顺序取决于实现。其他打印行也是如此。

错误消息显示awk脚本的第256行出现语法错误。我们怎么可能帮助您调试它,而您至少不发布第256行,并在其周围添加几行上下文?它说第267行也有语法错误,因此我建议您编辑问题,以显示脚本的第250-270行,前面有行号(如果在UNIX上,请使用
cat-n
),以便我们知道上面的错误消息所指的是脚本的哪一行。
if (!stubs) print "" > ( extname "/function_warning" )