Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions reference/info/constants.xml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
</table>

<simpara>
Assert constants, these values are used to set
Assert constants, these values are used to set
the assertion options in <function>assert_options</function>.
</simpara>
<table>
Expand All @@ -211,42 +211,47 @@
<entry><link linkend="ini.assert.active">assert.active</link></entry>
<entry>
Enable <function>assert</function> evaluation.
&warn.deprecated.feature-8-3-0;
</entry>
</row>
<row xml:id="constant.assert-callback">
<entry><constant>ASSERT_CALLBACK</constant></entry>
<entry><link linkend="ini.assert.callback">assert.callback</link></entry>
<entry>
Callback to call on failed assertions.
&warn.deprecated.feature-8-3-0;
</entry>
</row>
<row xml:id="constant.assert-bail">
<entry><constant>ASSERT_BAIL</constant></entry>
<entry><link linkend="ini.assert.bail">assert.bail</link></entry>
<entry>
Terminate execution on failed assertions.
&warn.deprecated.feature-8-3-0;
</entry>
</row>
<row xml:id="constant.assert-exception">
<entry><constant>ASSERT_EXCEPTION</constant></entry>
<entry><link linkend="ini.assert.exception">assert.exception</link></entry>
<entry>
Issues a PHP warning for each failed assertion
&warn.deprecated.feature-8-3-0;
</entry>
</row>
<row xml:id="constant.assert-warning">
<entry><constant>ASSERT_WARNING</constant></entry>
<entry><link linkend="ini.assert.warning">assert.warning</link></entry>
<entry>
Issues a PHP warning for each failed assertion
&warn.deprecated.feature-8-3-0;
</entry>
</row>
<row xml:id="constant.assert-quiet-eval">
<entry><constant>ASSERT_QUIET_EVAL</constant></entry>
<entry><link linkend="ini.assert.quiet-eval">assert.quiet_eval</link></entry>
<entry>
Disable <literal>error_reporting</literal> during assertion expression evaluation.
Removed as of PHP 8.0.0.
&warn.feature.removed-8-0-0;
</entry>
</row>
</tbody>
Expand Down
10 changes: 10 additions & 0 deletions reference/info/functions/assert-options.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
<refname>assert_options</refname>
<refpurpose>Set/get the various assert flags</refpurpose>
</refnamediv>

<refsynopsisdiv>
&warn.deprecated.function-8-3-0;
</refsynopsisdiv>

<refsect1 role="description">
&reftitle.description;
Expand Down Expand Up @@ -182,6 +186,12 @@
</row>
</thead>
<tbody>
<row>
<entry>8.3.0</entry>
<entry>
<function>assert_option</function> is now deprecated.
</entry>
</row>
<row>
<entry>8.0.0</entry>
<entry>
Expand Down
23 changes: 19 additions & 4 deletions reference/info/functions/assert.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@
If &false;, <function>assert</function> does not check the expectation
and returns &true;, unconditionally.
</entry>
<entry/>
<entry>
Deprecated as of PHP 8.3.0.
</entry>
</row>
<row>
<entry><link linkend="ini.assert.callback">assert.callback</link></entry>
Expand All @@ -106,6 +108,7 @@
<methodparam><type>string</type><parameter>assertion</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>description</parameter></methodparam>
</methodsynopsis>
Deprecated as of PHP 8.3.0.
</entry>
</row>
<row>
Expand All @@ -115,7 +118,9 @@
If &true; will throw an <classname>AssertionError</classname> if the
expectation isn't upheld.
</entry>
<entry/>
<entry>
Deprecated as of PHP 8.3.0.
</entry>
</row>
<row>
<entry><link linkend="ini.assert.bail">assert.bail</link></entry>
Expand All @@ -124,7 +129,9 @@
If &true; will abort execution of the PHP script if the
expectation isn't upheld.
</entry>
<entry/>
<entry>
Deprecated as of PHP 8.3.0.
</entry>
</row>
<row>
<entry><link linkend="ini.assert.warning">assert.warning</link></entry>
Expand All @@ -135,7 +142,9 @@
<link linkend="ini.assert.exception">assert.exception</link>
is enabled.
</entry>
<entry/>
<entry>
Deprecated as of PHP 8.3.0.
</entry>
</row>
</tbody>
</tgroup>
Expand Down Expand Up @@ -234,6 +243,12 @@
</row>
</thead>
<tbody>
<row>
<entry>8.3.0</entry>
<entry>
All <literal>assert.</literal> INI settings have been deprecated.
</entry>
</row>
<row>
<entry>8.0.0</entry>
<entry>
Expand Down
26 changes: 21 additions & 5 deletions reference/info/ini.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,33 @@
<entry><link linkend="ini.assert.active">assert.active</link></entry>
<entry>"1"</entry>
<entry>PHP_INI_ALL</entry>
<entry></entry>
<entry>
Deprecated as of PHP 8.3.0
</entry>
</row>
<row>
<entry><link linkend="ini.assert.bail">assert.bail</link></entry>
<entry>"0"</entry>
<entry>PHP_INI_ALL</entry>
<entry></entry>
<entry>
Deprecated as of PHP 8.3.0
</entry>
</row>
<row>
<entry><link linkend="ini.assert.warning">assert.warning</link></entry>
<entry>"1"</entry>
<entry>PHP_INI_ALL</entry>
<entry></entry>
<entry>
Deprecated as of PHP 8.3.0
</entry>
</row>
<row>
<entry><link linkend="ini.assert.callback">assert.callback</link></entry>
<entry>NULL</entry>
<entry>PHP_INI_ALL</entry>
<entry></entry>
<entry>
Deprecated as of PHP 8.3.0
</entry>
</row>
<row>
<entry><link linkend="ini.assert.quiet-eval">assert.quiet_eval</link></entry>
Expand All @@ -50,7 +58,10 @@
<entry><link linkend="ini.assert.exception">assert.exception</link></entry>
<entry>"1"</entry>
<entry>PHP_INI_ALL</entry>
<entry>Prior to PHP 8.0.0, defaults to <literal>"0"</literal></entry>
<entry>
Prior to PHP 8.0.0, defaults to <literal>"0"</literal>.
Deprecated as of PHP 8.3.0
</entry>
</row>
<row>
<entry><link linkend="ini.enable-dl">enable_dl</link></entry>
Expand Down Expand Up @@ -109,6 +120,7 @@
<link linkend="ini.zend.assertions">zend.assertions</link> should be
used instead to control the behaviour of <function>assert</function>.
</para>
&warn.deprecated.feature-8-3-0;
</listitem>
</varlistentry>

Expand All @@ -121,6 +133,7 @@
<para>
Terminate script execution on failed assertions.
</para>
&warn.deprecated.feature-8-3-0;
</listitem>
</varlistentry>

Expand All @@ -133,6 +146,7 @@
<para>
Issue a PHP warning for each failed assertion.
</para>
&warn.deprecated.feature-8-3-0;
</listitem>
</varlistentry>

Expand All @@ -145,6 +159,7 @@
<para>
User function to call on failed assertions.
</para>
&warn.deprecated.feature-8-3-0;
</listitem>
</varlistentry>

Expand Down Expand Up @@ -174,6 +189,7 @@
Issue an <classname>AssertionError</classname> exception for the failed
assertion.
</para>
&warn.deprecated.feature-8-3-0;
</listitem>
</varlistentry>

Expand Down
2 changes: 1 addition & 1 deletion reference/info/versions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-->
<versions>
<function name="assert" from="PHP 4, PHP 5, PHP 7, PHP 8"/>
<function name="assert_options" from="PHP 4, PHP 5, PHP 7, PHP 8"/>
<function name="assert_options" from="PHP 4, PHP 5, PHP 7, PHP 8" deprecated="PHP 8.3.0" />
<function name="cli_get_process_title" from="PHP 5 &gt;= 5.5.0, PHP 7, PHP 8"/>
<function name="cli_set_process_title" from="PHP 5 &gt;= 5.5.0, PHP 7, PHP 8"/>
<function name="dl" from="PHP 4, PHP 5, PHP 7, PHP 8"/>
Expand Down