[5.4] fix session_write_close on php7 #19040
The problem is that php7 and above expects a boolean return for the
After this PHP takes over and I believe it falls back to the ini configuration for saving a session, which fails again cause the file doesn't exist, was never opened and likely is looking in the wrong directory altogether.
in PHP 5.6 this wasn't an issue because it didn't have as strict requirements to adhere to the interface of the
It would probably makes sense to throw a database error if the cache ever fails to save the session data to know there was an issue (maybe it already does and it's never failed to date for me).