鍍金池/ 問答/PHP  網(wǎng)絡(luò)安全/ 求助: yaf 中使用Yaf_Session::getInstance(); 時(shí)

求助: yaf 中使用Yaf_Session::getInstance(); 時(shí)會(huì)導(dǎo)致php-fpm崩虧

1.我使用的是mac 系統(tǒng),安裝了php5.4, yaf2.3.4。 代碼運(yùn)行到Y(jié)af_Session::getInstance();時(shí)會(huì)崩潰。
2.查看nginx 錯(cuò)誤日志返回upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: localhost,
3.查看php-fpm日志顯示 child 64297 exited on signal 6 (SIGABRT) after 45.184201 seconds from start
4.沒有并發(fā),只發(fā)出了條請(qǐng)求,php-fpm 配置為動(dòng)態(tài)。不存在進(jìn)程等待情況。
5.其他的yaf 方法可以正常使用如 $loader = Yaf_Loader::getInstance();
$dispatcher = Yaf_Dispatcher::getInstance();
6.只有運(yùn)行到Y(jié)af_Session::getInstance(); 時(shí)會(huì)出現(xiàn)PHP-fpm崩潰,導(dǎo)致nginx直接返回502.
使用session_start() php方法操作session可以正常工作,保存路徑有權(quán)限。
求大佬幫助,各種方式都試了快2天了。

回答
編輯回答
心悲涼

問題解決了嗎

2018年4月22日 11:41