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

session_create_id(): Failed to create new ID #2949

Open
sisisiss opened this issue Oct 28, 2023 · 2 comments
Open

session_create_id(): Failed to create new ID #2949

sisisiss opened this issue Oct 28, 2023 · 2 comments

Comments

@sisisiss
Copy link

middleware.php 中开启 \think\middleware\SessionInit::class后出现session_create_id(): Failed to create new ID
php7.4及以下版本会报错,8.0正常

@sisisiss
Copy link
Author

报错位置vendor\topthink\framework\src\think\session\Store.php 121行

@hongweipeng
Copy link
Member

该函数 php7.1 开始支持,与 tp6 要求也是7.1 https://www.php.net/manual/en/function.session-create-id.php 你是具体哪个 php 版本和 tp 下会报错?

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