reference/array/functions/compact.xml
e311803cd2fb931ad80bab6fd0f996d2ece6e2b8
...
...
@@ -9,8 +9,8 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>array</type><methodname>compact</methodname>
12
-
<methodparam><type>mixed</type><parameter>var_name</parameter></methodparam>
13
-
<methodparam rep="repeat"><type>mixed</type><parameter>var_names</parameter></methodparam>
12
+
<methodparam><type class="union"><type>array</type><type>string</type></type><parameter>var_name</parameter></methodparam>
13
+
<methodparam rep="repeat"><type class="union"><type>array</type><type>string</type></type><parameter>var_names</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
Creates an array containing variables and their values.
...
...
@@ -58,7 +58,7 @@
58
58
<refsect1 role="errors">
59
59
&reftitle.errors;
60
60
<para>
61
-
<function>compact</function> issues an E_NOTICE level error if a given string
61
+
<function>compact</function> issues an <constant>E_WARNING</constant> level error if a given string
62
62
refers to an unset variable.
63
63
</para>
64
64
</refsect1>
...
...
@@ -75,9 +75,15 @@
75
75
</thead>
76
76
<tbody>
77
77
<row>
78
+
<entry>8.0.0</entry>
79
+
<entry>
80
+
If a given string references an unset variable, an <constant>E_WARNING</constant> level error is now issued.
81
+
</entry>
82
+
</row>
83
+
<row>
78
84
<entry>7.3.0</entry>
79
85
<entry>
80
-
<function>compact</function> now issues an E_NOTICE level error if a given string
86
+
<function>compact</function> now issues an <constant>E_NOTICE</constant> level error if a given string
81
87
refers to an unset variable. Formerly, such strings have been silently skipped.
82
88
</entry>
83
89
</row>
...
...
@@ -141,7 +147,6 @@ Array
141
147
</para>
142
148
</refsect1>
143
149
</refentry>
144
-

145
150
<!-- Keep this comment at the end of the file
146
151
Local variables:
147
152
mode: sgml
148
153