php C扩展 ext_skel报错

查看:176
本文介绍了php C扩展 ext_skel报错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

执行./ext_skel --extname=test2_module --proto=test2_module.def
报错 :
awk: syntax error at source line 256 source file /Applications/MAMP/bin/php/php5.6.6/include/php/ext/skeleton/create_stubs
context is
if (!stubs) print "" > extname >>> "/function_warning" <<<
awk: illegal statement at source line 257 source file /Applications/MAMP/bin/php/php5.6.6/include/php/ext/skeleton/create_stubs
awk: syntax error at source line 267 source file /Applications/MAMP/bin/php/php5.6.6/include/php/ext/skeleton/create_stubs
Creating basic files: config.m4 config.w32 .gitignore test2_module.c php_test2_module.h CREDITS EXPERIMENTAL tests/001.phpt test2_module.phprm: function_entries: No such file or directory
rm: function_declarations: No such file or directory
rm: function_stubs: No such file or directory
[done].
请问如何处理

解决方案

修改一下 ext/skeleton/create_stubs 文件中三处:

256行

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

改为

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

还有267、268行,相同。

搬运自 StackOverFlow

这篇关于php C扩展 ext_skel报错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆