PHP7 + Symfony 2.8,无法写入会话数据
我自己编译了php7(974f6c2a705)。如果我运行php7 + php-fpm + nginx使用symfony,我会得到这个错误:
(对会话使用 snc redis 捆绑包:)
Warning: session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/tmp)
(使用本机会话支持:)
Warning: session_write_close(): Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/[...]/app/cache/dev/sessions)
问题似乎与symfony有关,因为php对文件夹具有读/写访问权限。
如果我只运行此代码,则它有效:
session_start();
$_SESSION['x'] = 4234;
session_write_close();
任何建议或想法,为什么symfony不能写会议?