Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加扩展配置到.ini文件时产生了警告 #34

Closed
Hanson opened this issue Sep 22, 2017 · 4 comments
Closed

添加扩展配置到.ini文件时产生了警告 #34

Hanson opened this issue Sep 22, 2017 · 4 comments
Labels

Comments

@Hanson
Copy link

Hanson commented Sep 22, 2017

根据 https://segmentfault.com/a/1190000011111074?from=timeline&isappinstalled=0 操作

当把 extension=test.so 加到 php.ini 文件时,提示

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/test.so' - /usr/local/lib/libphpx.so: undefined symbol: json_globals in Unknown on line 0

当加 extension=json.so 在 test.so 上一行却提示

PHP Warning:  Module 'json' already loaded in Unknown on line 0
@owenliang
Copy link
Collaborator

需要将JSON扩展随PHP一起编译,不要作为独立扩展存在。

@Hanson
Copy link
Author

Hanson commented Sep 25, 2017

通过 apt-get 安装的就玩不起来么?一定要编译安装?

@owenliang
Copy link
Collaborator

目前是这样的,直接调用其他扩展的C符号,比通过Zend内核调用要快。

@matyhtf
Copy link
Member

matyhtf commented Sep 25, 2017

json扩展加载放到 extension=test.so 之前就可以了。上面的错误是因为同时存在2个 extension=json.so ,你可以删除另外一个。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants