-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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 Permissions #4039
Comments
If you're not reporting this as a bug ... what is it? What are you suggesting? |
I am expecting 1 warning only from this, which is the permission denied; it shouldn't try to re-wind a file it cannot access nor fread it. A boolean is returned, and it's being used as a resource. |
I got that from the initial description, but it doesn't answer my question ... |
Nevermind my previous comments ... it looks like a bug to me and you said you're not reporting it as such, so I wanted to know what are you reporting it as, but that's a moot point. I'm more interested in how you managed to trigger these warnings. |
I am not calling anything manually, I'm just autoloading the library, maybe when you're trying to read session data it calls read again ignoring the fact that it doesn't have permission in which case the _file_handle is already set to FALSE which results in having the other 2 errors. The session file was already created using different uid/gid & had data when I switched back to suphp to have it use my uid/gid. |
Well, that doesn't sound logical (there's no reason for repeated |
That should do it ... Although, another PHP bug is actually the cause for PHP 7 finally fixes it: https://wiki.php.net/rfc/session.user.return-value |
This was actually a PHP bug, see https://wiki.php.net/rfc/session.user.return-value Also related: #4039
I am not reporting this as a bug, I was messing with apache configurations & disabled suphp which created a session with the apache user information, after re-enabling suphp which switched to my userid I've got these errors from session files driver.
This one is normal:
but these, should be handled differently as on line 162 we are returning boolean, but it's never checked afterwards, which causes the following errors to appear:
This requires some checking so only the relevant warning appear (which is the permission denied one).
The text was updated successfully, but these errors were encountered: