diff --git a/reference/session/functions/session-set-save-handler.xml b/reference/session/functions/session-set-save-handler.xml index f411312eef..ae96f99d20 100644 --- a/reference/session/functions/session-set-save-handler.xml +++ b/reference/session/functions/session-set-save-handler.xml @@ -1,5 +1,5 @@ - + @@ -49,6 +49,15 @@ to read. Return values from other handlers are converted to boolean expression. &true; for success, &false; for failure. + + + 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. + +