Categories
PHP

PHP: Thread Safety disable

Debug php core dump 文件,遇到:No symbol “executor_globals” in current context. PHP EG在非多线程情况下 executor_globals 保持了很多执行状态。需要把 Thread Safety 关闭掉,使用 <?php phpinfo(); ?> 即可看出是否支持。我所用的版本是 php-5.4.4 httpd-2.4.2,先编译apache,./configure 带上

 --with-mpm=prefork

prefork模式,实现了一个非线程型的、预派生的web服务器,还有另外一个是 worker模式,支持多线程多进程。
php ./configure 带上

--with-apxs2=/usr/local/apache2/bin/apxs 

参考:

If you enjoyed this post, make sure you subscribe to my RSS feed!

Leave a Reply

Your email address will not be published. Required fields are marked *