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

执行错误 #3

Closed
glowdan opened this issue Mar 28, 2016 · 8 comments
Closed

执行错误 #3

glowdan opened this issue Mar 28, 2016 · 8 comments

Comments

@glowdan
Copy link

glowdan commented Mar 28, 2016

能正确安装,但是会报错。

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-zts-20151012/phpng_xhprof.so' - /usr/local/php/lib/php/extensions/no-debug-zts-20151012/phpng_xhprof.so: undefined symbol: _tsrm_ls_cache in Unknown on line 0

@yaoguais
Copy link
Owner

好的,我检查下,PHP版本是多少呢?

@glowdan
Copy link
Author

glowdan commented Mar 28, 2016

7.0.4

@yaoguais
Copy link
Owner

我这边是在debug模式编译后仍然会有memory leaks,但是没有出现Unable to load的情况,跑tests也是可以的,跑diff下面的脚本也正常执行。
我从官网下的源码包,编译参数: ./configure --prefix=/root/php7d --without-pear --enable-fpm --enable-debug
你能给一下你的编译参数吗?我这里没有重现这个错误.

@glowdan
Copy link
Author

glowdan commented Mar 29, 2016

我没有使用其他参数。直接configure的。服务器是CentOS release 6.6。

@yaoguais
Copy link
Owner

我的centos6.5也是直接./configure(这个我也试过了的),也没有出现这个问题呢,这个提示是跟线程安全相关的。
我的PHP编译模式:NTS,debug,非线程安全的debug模式。你是不是线程安全了的?

[root@dev php-7.0.4]# /root/php7d/bin/php -i
phpinfo()
PHP Version => 7.0.4

System => Linux dev 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64
Build Date => Mar 28 2016 12:37:59
Configure Command =>  './configure'  '--prefix=/root/php7d' '--without-pear' '--enable-fpm' '--enable-debug'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /root/php7d/lib
Loaded Configuration File => /root/php7d/lib/php.ini
Scan this dir for additional .ini files => (none)
Additional .ini files parsed => (none)
PHP API => 20151012
PHP Extension => 20151012
Zend Extension => 320151012
Zend Extension Build => API320151012,NTS,debug
PHP Extension Build => API20151012,NTS,debug
Debug Build => yes
Thread Safety => disabled
Zend Signal Handling => disabled
Zend Memory Manager => enabled
Zend Multibyte Support => disabled
IPv6 Support => enabled
DTrace Support => disabled

@glowdan
Copy link
Author

glowdan commented Mar 30, 2016

对的,我今天看了。是线程安全的了。准备换掉。谢谢啦。

@glowdan
Copy link
Author

glowdan commented Mar 30, 2016

加下好友吧,大神。

@glowdan glowdan closed this as completed Mar 30, 2016
@yaoguais
Copy link
Owner

不客气,这个扩展问题还不少,目前发现的大概有两个,memory leak跟call_user_function系列不兼容,还有待解决。

@demanLiu demanLiu mentioned this issue Jun 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants