cvs: phpdoc /ja/functions session.xml
| From: | Yasuo Ohgaki | Date: | Sun, 24 Feb 2002 06:14:27 +0000 |
| Subject: | cvs: phpdoc /ja/functions session.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969342554@lists.php.net to get a copy of this message | ||
yohgaki Sun Feb 24 01:14:27 2002 EDT
Modified files:
/phpdoc/ja/functions session.xml
Log:
Fix example that may cuase segfault :(
Index: phpdoc/ja/functions/session.xml
diff -u phpdoc/ja/functions/session.xml:1.30 phpdoc/ja/functions/session.xml:1.31
--- phpdoc/ja/functions/session.xml:1.30 Fri Feb 22 06:17:26 2002
+++ phpdoc/ja/functions/session.xml Sun Feb 24 01:14:26 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision: 1.30 $ -->
+<!-- $Revision: 1.31 $ -->
<reference id="ref.session">
<title>ã»ãã·ã§ã³å¦ç颿°(session)</title>
<titleabbrev>ã»ãã·ã§ã³</titleabbrev>
@@ -502,7 +502,7 @@
// If you are using session_name("something"), don't forget it now!
session_start();
// Unset all of the session variables.
-unset($_SESSION);
+$_SESSION = array();
// Finally, destroy the session.
session_destroy();
@@ -793,7 +793,7 @@
$_SESSION(ã¾ãã¯PHP
4.0.6以åã®å ´åã¯$HTTP_SESSION_VARS)ã使ç¨ã
ãã¦ããå ´åãã»ãã·ã§ã³å¤æ°ã®ç»é²ãåé¤ããããã«
<function>unset</function>ã使ç¨ãã¦ä¸ããã
- ããªãã¡ãunset($_SESSION);
+ ããªãã¡ã$_SESSION = array();
</para>
</note>
</refsect1>