User tests: Successful: Unsuccessful:
Pull Request for Issue #33740 .
Alternative to #33787 and #33817 .
When reading the session id from the session table on a PostgreSQL database using loadColumn(), the result is an array of resources and not of strings.
This PR here adds a check in the destroySessions routine of the session manager if the session ID is of type resource and the resource type is a stream, and if that is the case, reads the stream and use the result string for the destroySession call.
See issue #33740 .
See issue #33740 .
No errors. Session destroyed correctly. Now back at the login screen.
None.
| Status | New | ⇒ | Pending |
| Category | ⇒ | Libraries |
I have tested this item
Tested on both MySQLi and PostgreSQL.
@PhilETaylor No need to ping Robert. Maybe we get some info why, or not. Let's wait and see what happens. I am really not the PHP guru, so I'm always open for suggestions/change requests/critics, from whomever it comes.
I'm always open for suggestions/change requests/critics, from whomever it comes.
But it never comes. Thats the problem.
Its so disrespectful to simply thumb down PR's - constantly - with zero feedback and zero input. He has been banned and warned about his actions previously, but it seems he has not learned his lesson.
The docblock states that the input to this method should be an array of strings, so I guess doing the conversion where you are goes against that, because they should be strings before this method is called - according to the documented param - but, as in all the docs in joomla methods, they could be wrong and can be changed.
* @param string[] $sessionIds The session IDs to destroy.
| Status | Pending | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-05-12 12:05:06 |
| Closed_By | ⇒ | richard67 | |
| Labels |
Added:
?
?
|
||
Added release blocker label as inherited from the issue.