From f5c0015a1c3fc663866c7d088186f1d99ed2dc74 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Sun, 17 Jun 2007 09:47:38 +0000 Subject: [PATCH] /tmp/cvsC99PtG /tmp/cvsC99PtG git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@237899 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../session/functions/session-set-save-handler.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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.