[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] [doc-en] master: `compact()` issues an E_WARNING as of PHP 8.0 (#2776)
From: Hideki Kinjyo via GitHub <noreply () php ! net>
Date: 2023-09-19 17:55:51
Message-ID: AdhKRgXab8T3DYiTI0R4qbjNALvZFwjgJgUt5yyNah4 () main ! php ! net
[Download RAW message or body]
Author: Hideki Kinjyo (o0h)
Committer: GitHub (web-flow)
Pusher: Girgias
Date: 2023-09-19T18:42:22+01:00
Commit: https://github.com/php/doc-en/commit/e311803cd2fb931ad80bab6fd0f996d2ece6e2b8
Raw diff: https://github.com/php/doc-en/commit/e311803cd2fb931ad80bab6fd0f996d2ece6e2b8.diff
`compact()` issues an E_WARNING as of PHP 8.0 (#2776)
PHP 8.0 converted a number of notice to warnings via the "Reclassifying engine \
warnings" RFC: https://wiki.php.net/rfc/engine_warnings
Changed paths:
M reference/array/functions/compact.xml
Diff:
diff --git a/reference/array/functions/compact.xml \
b/reference/array/functions/compact.xml index 288c4238ad9..521f52880e7 100644
--- a/reference/array/functions/compact.xml
+++ b/reference/array/functions/compact.xml
@@ -58,7 +58,7 @@
<refsect1 role="errors">
&reftitle.errors;
<para>
- <function>compact</function> issues an E_NOTICE level error if a given string
+ <function>compact</function> issues an <constant>E_WARNING</constant> level error \
if a given string refers to an unset variable.
</para>
</refsect1>
@@ -74,10 +74,16 @@
</row>
</thead>
<tbody>
+ <row>
+ <entry>8.0.0</entry>
+ <entry>
+ If a given string references an unset variable, an \
<constant>E_WARNING</constant> level error is now issued. + </entry>
+ </row>
<row>
<entry>7.3.0</entry>
<entry>
- <function>compact</function> now issues an E_NOTICE level error if a given \
string + <function>compact</function> now issues an \
<constant>E_NOTICE</constant> level error if a given string
refers to an unset variable. Formerly, such strings have been silently \
skipped. </entry>
</row>
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic