philip          Mon Jan 17 22:03:15 2005 EDT

  Modified files:              
    /phpdoc/en/reference/array/functions        compact.xml 
  Log:
  Document bug #30935 (may not use Superglobals) 
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/array/functions/compact.xml?r1=1.7&r2=1.8&ty=u
Index: phpdoc/en/reference/array/functions/compact.xml
diff -u phpdoc/en/reference/array/functions/compact.xml:1.7 
phpdoc/en/reference/array/functions/compact.xml:1.8
--- phpdoc/en/reference/array/functions/compact.xml:1.7 Sun Aug 17 08:21:03 2003
+++ phpdoc/en/reference/array/functions/compact.xml     Mon Jan 17 22:03:14 2005
@@ -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>

Reply via email to