Commit 2bbb8891 authored by Dries's avatar Dries

- Patch #93945 by chx, jhm, et al: remove some session handler cruft from the...

- Patch #93945 by chx, jhm, et al: remove some session handler cruft from the mysqli database backend.
parent 392041ed
......@@ -115,16 +115,6 @@ function db_connect($url) {
/* Force UTF-8 */
mysqli_query($connection, 'SET NAMES "utf8"');
/**
* from: http://bugs.php.net/bug.php?id=33772
* Write and Close handlers are called after destructing objects since PHP
* 5.0.5. Thus destructors can use sessions but session handler can't use
* objects. In prior versions, they were called in the opposite order. It
* is possible to call session_write_close() from the destructor to solve
* this chicken and egg problem.
*/
register_shutdown_function('session_write_close');
return $connection;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment