[PHP-DOC] cvs: phpdoc /en/reference/session/functions session-register.xml From: Martin Samesch (martin.samesch <email protected>)
Date: 01/31/03

samesch Fri Jan 31 14:14:59 2003 EDT

  Modified files:
    /phpdoc/en/reference/session/functions session-register.xml
  Log:
  added tags; s/mimick/mimic; wrapped some lines
  
Index: phpdoc/en/reference/session/functions/session-register.xml
diff -u phpdoc/en/reference/session/functions/session-register.xml:1.7 phpdoc/en/reference/session/functions/session-register.xml:1.8
--- phpdoc/en/reference/session/functions/session-register.xml:1.7 Sat Jan 18 00:38:52 2003
+++ phpdoc/en/reference/session/functions/session-register.xml Fri Jan 31 14:14:58 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
 <!-- splitted from ./en/functions/session.xml, last change in rev 1.2 -->
   <refentry id="function.session-register">
    <refnamediv>
@@ -24,28 +24,33 @@
     </para>
     <caution>
      <para>
- If you want your script to work regardless of register_globals, you need
- to use the $_SESSION array. All $_SESSION entries are automatically
- registered. If your script uses session_register(), it will not work in
- environments where register_globals is disabled.
+ If you want your script to work regardless of <link
+ linkend="ini.register-globals"><literal>register_globals</literal></link>,
+ you need to use the <varname>$_SESSION</varname> array. All
+ <varname>$_SESSION</varname> entries are automatically
+ registered. If your script uses
+ <function>session_register</function>, it will not work in
+ environments where <link
+ linkend="ini.register-globals"><literal>register_globals</literal></link>
+ is disabled.
      </para>
     </caution>
     <caution>
      <para>
- This registers a <emphasis>global</emphasis> variable. If you want to
- register a session variable from within a function, you need to make sure to
- make it global using the
- <link linkend="language.variables.scope"><command>global</command></link>
- keyword or the <varname>$GLOBALS[]</varname> array, or use the special session
- arrays as noted below.
+ This registers a <emphasis>global</emphasis> variable. If you
+ want to register a session variable from within a function, you
+ need to make sure to make it global using the <link
+ linkend="language.variables.scope"><command>global</command></link>
+ keyword or the <varname>$GLOBALS[]</varname> array, or use the
+ special session arrays as noted below.
      </para>
     </caution>
     <caution>
      <para>
- If you are using
- <varname>$_SESSION</varname> (or <varname>$HTTP_SESSION_VARS</varname>),
- do not use <function>session_register</function>,
- <function>session_is_registered</function> and
+ If you are using <varname>$_SESSION</varname>
+ (or <varname>$HTTP_SESSION_VARS</varname>), do not use
+ <function>session_register</function>,
+ <function>session_is_registered</function>, and
       <function>session_unregister</function>.
      </para>
     </caution>
@@ -56,7 +61,7 @@
     <para>
      If <function>session_start</function> was not called before this function
      is called, an implicit call to <function>session_start</function> with no
- parameters will be made. <varname>$_SESSION</varname> does not mimick
+ parameters will be made. <varname>$_SESSION</varname> does not mimic
      this behavior and requires <function>session_start</function> before use.
     </para>
     <para>

-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php