Home > Backend Development > PHP Tutorial > php扩展开发调用动态库编译后,无法再phpinfo中找到,并且无法调用函数

php扩展开发调用动态库编译后,无法再phpinfo中找到,并且无法调用函数

WBOY
Release: 2016-06-23 13:23:50
Original
1019 people have browsed it

RT,通过http://blog.csdn.net/wzhwho/article/details/6949297这篇博客实现了一个调用动态库的扩展。刚开始先试验了用c调用扩展库并成功运行,但是通过php扩展调用并编译完成后php就无法加载了。求各位大大帮忙


回复讨论(解决方案)

请确定你安装的扩展是否成功
查看phpinfo文件

请确定你安装的扩展是否成功
查看phpinfo文件

问题是我去掉了动态库的调用在编译扩展就能在phpinfo中显示。加上了就不行。求版主大大帮助

gdb调试以后提示undefined symbol:xxxxx。但是我已经在之前引入了头文件了

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template