philip Fri Apr 28 17:05:47 2006 UTC
Modified files:
/phpdoc/en/faq misc.xml
Log:
Refer to variables_order and sessions in the "emulate register_globals" faq
http://cvs.php.net/viewcvs.cgi/phpdoc/en/faq/misc.xml?r1=1.26&r2=1.27&diff_format=u
Index: phpdoc/en/faq/misc.xml
diff -u phpdoc/en/faq/misc.xml:1.26 phpdoc/en/faq/misc.xml:1.27
--- phpdoc/en/faq/misc.xml:1.26 Thu Aug 18 20:49:16 2005
+++ phpdoc/en/faq/misc.xml Fri Apr 28 17:05:47 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.26 $ -->
+<!-- $Revision: 1.27 $ -->
<chapter id="faq.misc">
<title>Miscellaneous Questions</title>
<titleabbrev>Miscellaneous Questions</titleabbrev>
@@ -126,7 +126,9 @@
<example>
<title>Emulating Register Globals</title>
<para>
- This will emulate register_globals On.
+ This will emulate register_globals On. If you altered your
+ <link linkend="ini.variables-order">variables_order</link> directive,
+ consider changing the <varname>$superglobals</varname> accordingly.
</para>
<programlisting role="php">
<![CDATA[
@@ -146,7 +148,9 @@
]]>
</programlisting>
<para>
- This will emulate register_globals Off. Keep in mind, that this code
should be called in the very beginning of your script.
+ This will emulate register_globals Off. Keep in mind, that this code
+ should be called at the very beginning of your script, or after
+ <function>session_start</function> if you use it to start your session.
</para>
<programlisting role="php">
<![CDATA[