vrana Fri Mar 25 07:41:09 2005 EDT
Modified files:
/phpdoc/en/faq misc.xml
Log:
Explain ini_set('register_globals') (bug #32453)
http://cvs.php.net/diff.php/phpdoc/en/faq/misc.xml?r1=1.22&r2=1.23&ty=u
Index: phpdoc/en/faq/misc.xml
diff -u phpdoc/en/faq/misc.xml:1.22 phpdoc/en/faq/misc.xml:1.23
--- phpdoc/en/faq/misc.xml:1.22 Wed Nov 24 21:51:16 2004
+++ phpdoc/en/faq/misc.xml Fri Mar 25 07:41:08 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.22 $ -->
+<!-- $Revision: 1.23 $ -->
<chapter id="faq.misc">
<title>Miscellaneous Questions</title>
<titleabbrev>Miscellaneous Questions</titleabbrev>
@@ -141,6 +141,7 @@
foreach ($superglobals as $superglobal) {
extract($superglobal, EXTR_SKIP);
}
+ // tell the rest of the script that globals are registered
ini_set('register_globals', true);
}
?>
@@ -164,6 +165,7 @@
unset($GLOBALS[$global]);
}
}
+ // tell the rest of the script that globals are not registered
ini_set('register_globals', false);
}
?>