mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 09:38:53 +01:00
"fix to work around an other php5.1 bug/problem: class methods seem not be able to call session_set_save_handler
It returns false and the session_handler is not changed. It's working in php5.2 (at least on my OpenSUSE 11.0 with php5.2.6)"
This commit is contained in:
parent
11b1ce5bb1
commit
7696e91011
@ -151,8 +151,15 @@ class Horde_SyncML_SyncMLHdr extends Horde_SyncML_ContentHandler {
|
|||||||
session_destroy();
|
session_destroy();
|
||||||
|
|
||||||
// we need to (re-)load the eGW session-handler, as session_destroy unloads custom session-handlers
|
// we need to (re-)load the eGW session-handler, as session_destroy unloads custom session-handlers
|
||||||
|
// there seems to be a bug in php5.1 that calls from class methods to session_set_save_handler always fail ...
|
||||||
|
if (version_compare(PHP_VERSION,'5.2','<') && function_exists('init_session_handler'))
|
||||||
|
{
|
||||||
|
init_session_handler();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
egw_session::init_handler();
|
egw_session::init_handler();
|
||||||
|
}
|
||||||
// Reload the Horde SessionHandler if necessary.
|
// Reload the Horde SessionHandler if necessary.
|
||||||
Horde::setupSessionHandler();
|
Horde::setupSessionHandler();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user