diff --git a/reference/session/functions/session-set-save-handler.xml b/reference/session/functions/session-set-save-handler.xml index 68819cbf78..bff74934e8 100644 --- a/reference/session/functions/session-set-save-handler.xml +++ b/reference/session/functions/session-set-save-handler.xml @@ -1,5 +1,5 @@ - + session_set_save_handler @@ -183,14 +183,14 @@ session_start(); &reftitle.notes; - 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. + As of PHP 5.0.5 the write and + close handlers are called after object + destruction and therefore cannot use objects or throw exceptions. + The object destructors can however use sessions. - Write and Close handlers cannot throw exceptions. + It is possible to call session_write_close from the + destructor to solve this chicken and egg problem.