Document bug #30935 (may not use Superglobals)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@177506 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2005-01-18 03:03:14 +00:00
parent e9843205aa
commit 72abc2a3a6

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.7 $ -->
<!-- $Revision: 1.8 $ -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
<refentry id="function.compact">
<refnamediv>
@ -33,6 +33,16 @@
<para>
Any strings that are not set will simply be skipped.
</para>
<note>
<title>Gotcha</title>
<para>
Because <link linkend="language.variables.variable">variable
variables</link> may not be used with PHP's
<link linkend="language.variables.superglobals">Superglobal
arrays</link> within functions, the Superglobal arrays may not be passed
into <function>compact</function>.
</para>
</note>
<para>
<example>
<title><function>compact</function> example</title>