mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Destructors (bug #33772)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@196446 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
79ccef0414
commit
1270788c11
1 changed files with 10 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.11 $ -->
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<!-- splitted from ./en/functions/session.xml, last change in rev 1.23 -->
|
||||
<refentry id="function.session-set-save-handler">
|
||||
<refnamediv>
|
||||
|
@ -49,6 +49,15 @@
|
|||
to read. Return values from other handlers are converted to
|
||||
boolean expression. &true; for success, &false; for failure.
|
||||
</para>
|
||||
<warning>
|
||||
<para>
|
||||
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 <function>session_write_close</function> from the
|
||||
destructor to solve this chicken and egg problem.
|
||||
</para>
|
||||
</warning>
|
||||
<para>
|
||||
<example>
|
||||
<title>
|
||||
|
|
Loading…
Reference in a new issue