lixuancn / MeepoPS

MeepoPS是Meepo PHP Socket的缩写,旨在提供稳定的Socket服务。可以轻松构建在线实时聊天、即时游戏、视频流媒体播放等。
http://meepops.lanecn.com
Do What The F*ck You Want To Public License
505 stars 137 forks source link

基于WebSocket的实时监控报错,无法访问到localhost:19910 #14

Closed sunyinggang closed 6 years ago

sunyinggang commented 6 years ago

PHP Fatal error: Can't use function return value in write context in /var/www/imooc/socket/MeepoPS/MeepoPS/Library/Session.php on line 32 [INFO][2017-12-10 20:11:57][22084]MeepoPS check shutdown reason [ERROR][2017-12-10 20:11:57][22084]stream_socket_serverMeepoPS unexpectedly quits. last error: {"type":64,"message":"Can't use function return value in write context","file":"\/var\/www\/imooc\/socket\/MeepoPS\/MeepoPS\/Library\/Session.php","line":32} [ERROR][2017-12-10 20:11:57][22079]MeepoPS instance(MeepoPS-Http:22084) exit. Status: 65280

lixuancn commented 6 years ago

32 $sessionSavePath = session_save_path(); 33 $this->_savePath = !empty($sessionSavePath) ? $sessionSavePath : sys_get_temp_dir();

把32行改成上面2行