[DOC-CVS] [doc-en] master: Fix class constant references inside parameter default values (#5084)

[email protected] (Máté Kocsis via GitHub)
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Máté Kocsis (kocsismate)
Committer: GitHub (web-flow)
Pusher: kocsismate
Date: 2026-01-09T09:50:14+01:00

Commit: https://github.com/php/doc-en/commit/c142be811735a5542c8a2e4c4ed2f81e8cc3acc6
Raw diff: https://github.com/php/doc-en/commit/c142be811735a5542c8a2e4c4ed2f81e8cc3acc6.diff

Fix class constant references inside parameter default values (#5084)

Changed paths:
  M  reference/bc/bcmath/number/round.xml
  M  reference/bc/functions/bcround.xml
  M  reference/datetime/datetimezone/listidentifiers.xml
  M  reference/intl/collator/asort.xml
  M  reference/intl/collator/sort.xml
  M  reference/intl/dateformatter/create.xml
  M  reference/intl/intlbreakiterator/getpartsiterator.xml
  M  reference/intl/intlchar/charfromname.xml
  M  reference/intl/intlchar/charname.xml
  M  reference/intl/intlchar/enumcharnames.xml
  M  reference/intl/intlchar/foldcase.xml
  M  reference/intl/intlchar/getpropertyname.xml
  M  reference/intl/intlchar/getpropertyvaluename.xml
  M  reference/intl/intltimezone/getdisplayname.xml
  M  reference/intl/normalizer/get-raw-decomposition.xml
  M  reference/intl/normalizer/is-normalized.xml
  M  reference/intl/normalizer/normalize.xml
  M  reference/intl/numberformatter/format.xml
  M  reference/intl/numberformatter/parse.xml
  M  reference/intl/transliterator/create.xml
  M  reference/intl/transliterator/createfromrules.xml
  M  reference/math/functions/round.xml
  M  reference/pdo/pdo/quote.xml
  M  reference/pdo/pdostatement/bindcolumn.xml
  M  reference/pdo/pdostatement/bindparam.xml
  M  reference/pdo/pdostatement/bindvalue.xml
  M  reference/pdo/pdostatement/fetch.xml
  M  reference/pdo_pgsql/pdo/pgsql/getnotify.xml
  M  reference/random/random/randomizer/getfloat.xml
  M  reference/simplexml/functions/simplexml-import-dom.xml
  M  reference/simplexml/functions/simplexml-load-file.xml
  M  reference/simplexml/functions/simplexml-load-string.xml
  M  reference/spl/arrayobject/construct.xml
  M  reference/spl/cachingiterator/construct.xml
  M  reference/spl/recursivecachingiterator/construct.xml
  M  reference/spl/recursiveiteratoriterator/construct.xml
  M  reference/spl/recursiveregexiterator/construct.xml
  M  reference/spl/recursivetreeiterator/construct.xml
  M  reference/spl/regexiterator/construct.xml
  M  reference/spl/splfileinfo/setfileclass.xml
  M  reference/spl/splfileinfo/setinfoclass.xml
  M  reference/zip/ziparchive/addfile.xml
  M  reference/zip/ziparchive/addfromstring.xml
  M  reference/zip/ziparchive/replacefile.xml


Diff:

diff --git a/reference/bc/bcmath/number/round.xml b/reference/bc/bcmath/number/round.xml
index 859082b23d0b..0902547a8b45 100644
--- a/reference/bc/bcmath/number/round.xml
+++ b/reference/bc/bcmath/number/round.xml
@@ -10,7 +10,7 @@
   <methodsynopsis role="BcMath\\Number">
    <modifier>public</modifier> <type>BcMath\Number</type><methodname>BcMath\Number::round</methodname>
    <methodparam choice="opt"><type>int</type><parameter>precision</parameter><initializer>0</initializer></methodparam>
-   <methodparam choice="opt"><type>RoundingMode</type><parameter>mode</parameter><initializer>RoundingMode::HalfAwayFromZero</initializer></methodparam>
+   <methodparam choice="opt"><type>RoundingMode</type><parameter>mode</parameter><initializer><constant>RoundingMode::HalfAwayFromZero</constant></initializer></methodparam>
   </methodsynopsis>
   <simpara>
    Returns the rounded value of <varname>$this</varname> to
diff --git a/reference/bc/functions/bcround.xml b/reference/bc/functions/bcround.xml
index f72d3e14303c..f69be748cb92 100644
--- a/reference/bc/functions/bcround.xml
+++ b/reference/bc/functions/bcround.xml
@@ -12,7 +12,7 @@
    <type>string</type><methodname>bcround</methodname>
    <methodparam><type>string</type><parameter>num</parameter></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>precision</parameter><initializer>0</initializer></methodparam>
-   <methodparam choice="opt"><type>RoundingMode</type><parameter>mode</parameter><initializer>RoundingMode::HalfAwayFromZero</initializer></methodparam>
+   <methodparam choice="opt"><type>RoundingMode</type><parameter>mode</parameter><initializer><constant>RoundingMode::HalfAwayFromZero</constant></initializer></methodparam>
   </methodsynopsis>
   <simpara>
    Returns the rounded value of <parameter>num</parameter> to
diff --git a/reference/datetime/datetimezone/listidentifiers.xml b/reference/datetime/datetimezone/listidentifiers.xml
index e8093ad0b57f..05133236749a 100644
--- a/reference/datetime/datetimezone/listidentifiers.xml
+++ b/reference/datetime/datetimezone/listidentifiers.xml
@@ -11,13 +11,13 @@
   <para>&style.oop;</para>
   <methodsynopsis role="DateTimeZone">
    <modifier>public</modifier> <modifier>static</modifier> <type>array</type><methodname>DateTimeZone::listIdentifiers</methodname>
-   <methodparam choice="opt"><type>int</type><parameter>timezoneGroup</parameter><initializer>DateTimeZone::ALL</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>timezoneGroup</parameter><initializer><constant>DateTimeZone::ALL</constant></initializer></methodparam>
    <methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>countryCode</parameter><initializer>&null;</initializer></methodparam>
   </methodsynopsis>
   <para>&style.procedural;</para>
   <methodsynopsis>
    <type>array</type><methodname>timezone_identifiers_list</methodname>
-   <methodparam choice="opt"><type>int</type><parameter>timezoneGroup</parameter><initializer>DateTimeZone::ALL</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>timezoneGroup</parameter><initializer><constant>DateTimeZone::ALL</constant></initializer></methodparam>
    <methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>countryCode</parameter><initializer>&null;</initializer></methodparam>
   </methodsynopsis>
   <simpara>
diff --git a/reference/intl/collator/asort.xml b/reference/intl/collator/asort.xml
index 17967a406a3d..312c5c7687fc 100644
--- a/reference/intl/collator/asort.xml
+++ b/reference/intl/collator/asort.xml
@@ -13,7 +13,7 @@
   <methodsynopsis role="Collator">
    <modifier>public</modifier> <type>bool</type><methodname>Collator::asort</methodname>
    <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>Collator::SORT_REGULAR</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>Collator::SORT_REGULAR</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
    &style.procedural;
@@ -22,7 +22,7 @@
    <type>bool</type><methodname>collator_asort</methodname>
    <methodparam><type>Collator</type><parameter>object</parameter></methodparam>
    <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>Collator::SORT_REGULAR</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>Collator::SORT_REGULAR</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
    This function sorts an array such that array indices maintain their
diff --git a/reference/intl/collator/sort.xml b/reference/intl/collator/sort.xml
index 1b180d078ad3..60b15d326459 100644
--- a/reference/intl/collator/sort.xml
+++ b/reference/intl/collator/sort.xml
@@ -15,7 +15,7 @@
   <methodsynopsis role="Collator">
    <modifier>public</modifier> <type>bool</type><methodname>Collator::sort</methodname>
    <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>Collator::SORT_REGULAR</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>Collator::SORT_REGULAR</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
    &style.procedural;
@@ -24,7 +24,7 @@
    <type>bool</type><methodname>collator_sort</methodname>
    <methodparam><type>Collator</type><parameter>object</parameter></methodparam>
    <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>Collator::SORT_REGULAR</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>Collator::SORT_REGULAR</constant></initializer></methodparam>
   </methodsynopsis>
   <para>This function sorts an array according to current locale rules.</para>
   <para>
diff --git a/reference/intl/dateformatter/create.xml b/reference/intl/dateformatter/create.xml
index afd48eb0f6d5..acea1ca4fd79 100644
--- a/reference/intl/dateformatter/create.xml
+++ b/reference/intl/dateformatter/create.xml
@@ -15,8 +15,8 @@
   <methodsynopsis role="IntlDateFormatter">
    <modifier>public</modifier> <modifier>static</modifier> <type class="union"><type>IntlDateFormatter</type><type>null</type></type><methodname>IntlDateFormatter::create</methodname>
    <methodparam><type class="union"><type>string</type><type>null</type></type><parameter>locale</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>dateType</parameter><initializer>IntlDateFormatter::FULL</initializer></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>timeType</parameter><initializer>IntlDateFormatter::FULL</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>dateType</parameter><initializer><constant>IntlDateFormatter::FULL</constant></initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>timeType</parameter><initializer><constant>IntlDateFormatter::FULL</constant></initializer></methodparam>
    <methodparam choice="opt"><type class="union"><type>IntlTimeZone</type><type>DateTimeZone</type><type>string</type><type>null</type></type><parameter>timezone</parameter><initializer>&null;</initializer></methodparam>
    <methodparam choice="opt"><type class="union"><type>IntlCalendar</type><type>int</type><type>null</type></type><parameter>calendar</parameter><initializer>&null;</initializer></methodparam>
    <methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>pattern</parameter><initializer>&null;</initializer></methodparam>
@@ -27,8 +27,8 @@
   <constructorsynopsis role="IntlDateFormatter">
    <modifier>public</modifier> <methodname>IntlDateFormatter::__construct</methodname>
    <methodparam><type class="union"><type>string</type><type>null</type></type><parameter>locale</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>dateType</parameter><initializer>IntlDateFormatter::FULL</initializer></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>timeType</parameter><initializer>IntlDateFormatter::FULL</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>dateType</parameter><initializer><constant>IntlDateFormatter::FULL</constant></initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>timeType</parameter><initializer><constant>IntlDateFormatter::FULL</constant></initializer></methodparam>
    <methodparam choice="opt"><type class="union"><type>IntlTimeZone</type><type>DateTimeZone</type><type>string</type><type>null</type></type><parameter>timezone</parameter><initializer>&null;</initializer></methodparam>
    <methodparam choice="opt"><type class="union"><type>IntlCalendar</type><type>int</type><type>null</type></type><parameter>calendar</parameter><initializer>&null;</initializer></methodparam>
    <methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>pattern</parameter><initializer>&null;</initializer></methodparam>
@@ -39,8 +39,8 @@
   <methodsynopsis>
    <type class="union"><type>IntlDateFormatter</type><type>null</type></type><methodname>datefmt_create</methodname>
    <methodparam><type class="union"><type>string</type><type>null</type></type><parameter>locale</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>dateType</parameter><initializer>IntlDateFormatter::FULL</initializer></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>timeType</parameter><initializer>IntlDateFormatter::FULL</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>dateType</parameter><initializer><constant>IntlDateFormatter::FULL</constant></initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>timeType</parameter><initializer><constant>IntlDateFormatter::FULL</constant></initializer></methodparam>
    <methodparam choice="opt"><type class="union"><type>IntlTimeZone</type><type>DateTimeZone</type><type>string</type><type>null</type></type><parameter>timezone</parameter><initializer>&null;</initializer></methodparam>
    <methodparam choice="opt"><type class="union"><type>IntlCalendar</type><type>int</type><type>null</type></type><parameter>calendar</parameter><initializer>&null;</initializer></methodparam>
    <methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>pattern</parameter><initializer>&null;</initializer></methodparam>
@@ -59,8 +59,7 @@
      <listitem>
       <para>
        Locale to use when formatting or parsing or &null; to use the value
-       specified in the ini setting <link
-       linkend="ini.intl.default-locale">intl.default_locale</link>.
+       specified in the ini setting <link linkend="ini.intl.default-locale">intl.default_locale</link>.
       </para>
      </listitem>
     </varlistentry>
@@ -110,8 +109,7 @@
        Calendar to use for formatting or parsing. The default value is &null;,
        which corresponds to <constant>IntlDateFormatter::GREGORIAN</constant>.
        This can either be one of the
-       <link
-       linkend="intl.intldateformatter-constants.calendartypes">IntlDateFormatter
+       <link linkend="intl.intldateformatter-constants.calendartypes">IntlDateFormatter
        calendar constants</link> or an <classname>IntlCalendar</classname>. Any
        <classname>IntlCalendar</classname> object passed will be clone; it will
        not be changed by the <classname>IntlDateFormatter</classname>. This will
@@ -126,8 +124,7 @@
      <listitem>
       <para>
        Optional pattern to use when formatting or parsing.
-       Possible patterns are documented at <link
-       xlink:href="&url.icu.datepattern;">&url.icu.datepattern;</link>.
+       Possible patterns are documented at <link xlink:href="&url.icu.datepattern;">&url.icu.datepattern;</link>.
       </para>
      </listitem>
     </varlistentry>
diff --git a/reference/intl/intlbreakiterator/getpartsiterator.xml b/reference/intl/intlbreakiterator/getpartsiterator.xml
index b3ae7111bf1d..bc6cb65480ac 100644
--- a/reference/intl/intlbreakiterator/getpartsiterator.xml
+++ b/reference/intl/intlbreakiterator/getpartsiterator.xml
@@ -10,7 +10,7 @@
   &reftitle.description;
   <methodsynopsis role="IntlBreakIterator">
    <modifier>public</modifier> <type>IntlPartsIterator</type><methodname>IntlBreakIterator::getPartsIterator</methodname>
-   <methodparam choice="opt"><type>string</type><parameter>type</parameter><initializer>IntlPartsIterator::KEY_SEQUENTIAL</initializer></methodparam>
+   <methodparam choice="opt"><type>string</type><parameter>type</parameter><initializer><constant>IntlPartsIterator::KEY_SEQUENTIAL</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
 
diff --git a/reference/intl/intlchar/charfromname.xml b/reference/intl/intlchar/charfromname.xml
index 4320769a4981..71d1b85475ad 100644
--- a/reference/intl/intlchar/charfromname.xml
+++ b/reference/intl/intlchar/charfromname.xml
@@ -11,7 +11,7 @@
   <methodsynopsis role="IntlChar">
    <modifier>public</modifier> <modifier>static</modifier> <type class="union"><type>int</type><type>null</type></type><methodname>IntlChar::charFromName</methodname>
    <methodparam><type>string</type><parameter>name</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer>IntlChar::UNICODE_CHAR_NAME</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer><constant>IntlChar::UNICODE_CHAR_NAME</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
    Finds a Unicode character by its name and returns its code point value.
diff --git a/reference/intl/intlchar/charname.xml b/reference/intl/intlchar/charname.xml
index b5a63253175a..2c7986f8378d 100644
--- a/reference/intl/intlchar/charname.xml
+++ b/reference/intl/intlchar/charname.xml
@@ -11,7 +11,7 @@
   <methodsynopsis role="IntlChar">
    <modifier>public</modifier> <modifier>static</modifier> <type class="union"><type>string</type><type>null</type></type><methodname>IntlChar::charName</methodname>
    <methodparam><type class="union"><type>int</type><type>string</type></type><parameter>codepoint</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer>IntlChar::UNICODE_CHAR_NAME</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer><constant>IntlChar::UNICODE_CHAR_NAME</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
    Retrieves the name of a Unicode character.
diff --git a/reference/intl/intlchar/enumcharnames.xml b/reference/intl/intlchar/enumcharnames.xml
index e4fb53cd3857..9d912b88499e 100644
--- a/reference/intl/intlchar/enumcharnames.xml
+++ b/reference/intl/intlchar/enumcharnames.xml
@@ -13,7 +13,7 @@
    <methodparam><type class="union"><type>int</type><type>string</type></type><parameter>start</parameter></methodparam>
    <methodparam><type class="union"><type>int</type><type>string</type></type><parameter>end</parameter></methodparam>
    <methodparam><type>callable</type><parameter>callback</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer>IntlChar::UNICODE_CHAR_NAME</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer><constant>IntlChar::UNICODE_CHAR_NAME</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
    Enumerate all assigned Unicode characters between the start and limit code points (start inclusive, limit exclusive)
diff --git a/reference/intl/intlchar/foldcase.xml b/reference/intl/intlchar/foldcase.xml
index e80920f7db90..aac59073acd0 100644
--- a/reference/intl/intlchar/foldcase.xml
+++ b/reference/intl/intlchar/foldcase.xml
@@ -11,7 +11,7 @@
   <methodsynopsis role="IntlChar">
    <modifier>public</modifier> <modifier>static</modifier> <type class="union"><type>int</type><type>string</type><type>null</type></type><methodname>IntlChar::foldCase</methodname>
    <methodparam><type class="union"><type>int</type><type>string</type></type><parameter>codepoint</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>IntlChar::FOLD_CASE_DEFAULT</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer><constant>IntlChar::FOLD_CASE_DEFAULT</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
    The given character is mapped to its case folding equivalent; if the character has no case folding equivalent,
diff --git a/reference/intl/intlchar/getpropertyname.xml b/reference/intl/intlchar/getpropertyname.xml
index 3076fdb2e054..30ef16cad943 100644
--- a/reference/intl/intlchar/getpropertyname.xml
+++ b/reference/intl/intlchar/getpropertyname.xml
@@ -11,7 +11,7 @@
   <methodsynopsis role="IntlChar">
    <modifier>public</modifier> <modifier>static</modifier> <type class="union"><type>string</type><type>false</type></type><methodname>IntlChar::getPropertyName</methodname>
    <methodparam><type>int</type><parameter>property</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer>IntlChar::LONG_PROPERTY_NAME</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer><constant>IntlChar::LONG_PROPERTY_NAME</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
    Returns the Unicode name for a given property, as given in the Unicode database file PropertyAliases.txt.
diff --git a/reference/intl/intlchar/getpropertyvaluename.xml b/reference/intl/intlchar/getpropertyvaluename.xml
index cc931836c160..e29a002e8b8f 100644
--- a/reference/intl/intlchar/getpropertyvaluename.xml
+++ b/reference/intl/intlchar/getpropertyvaluename.xml
@@ -12,7 +12,7 @@
    <modifier>public</modifier> <modifier>static</modifier> <type class="union"><type>string</type><type>false</type></type><methodname>IntlChar::getPropertyValueName</methodname>
    <methodparam><type>int</type><parameter>property</parameter></methodparam>
    <methodparam><type>int</type><parameter>value</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer>IntlChar::LONG_PROPERTY_NAME</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer><constant>IntlChar::LONG_PROPERTY_NAME</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
    Returns the Unicode name for a given property value, as given in the Unicode database file PropertyValueAliases.txt.
diff --git a/reference/intl/intltimezone/getdisplayname.xml b/reference/intl/intltimezone/getdisplayname.xml
index 21aa663294bb..5cbeea6cc25e 100644
--- a/reference/intl/intltimezone/getdisplayname.xml
+++ b/reference/intl/intltimezone/getdisplayname.xml
@@ -13,7 +13,7 @@
   <methodsynopsis role="IntlTimeZone">
    <modifier>public</modifier> <type class="union"><type>string</type><type>false</type></type><methodname>IntlTimeZone::getDisplayName</methodname>
    <methodparam choice="opt"><type>bool</type><parameter>dst</parameter><initializer>&false;</initializer></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>style</parameter><initializer>IntlTimeZone::DISPLAY_LONG</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>style</parameter><initializer><constant>IntlTimeZone::DISPLAY_LONG</constant></initializer></methodparam>
    <methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>locale</parameter><initializer>&null;</initializer></methodparam>
   </methodsynopsis>
   <para>&style.procedural;:</para>
@@ -21,7 +21,7 @@
    <type class="union"><type>string</type><type>false</type></type><methodname>intltz_get_display_name</methodname>
    <methodparam><type>IntlTimeZone</type><parameter>timezone</parameter></methodparam>
    <methodparam choice="opt"><type>bool</type><parameter>dst</parameter><initializer>&false;</initializer></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>style</parameter><initializer>IntlTimeZone::DISPLAY_LONG</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>style</parameter><initializer><constant>IntlTimeZone::DISPLAY_LONG</constant></initializer></methodparam>
    <methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>locale</parameter><initializer>&null;</initializer></methodparam>
   </methodsynopsis>
   <para>
diff --git a/reference/intl/normalizer/get-raw-decomposition.xml b/reference/intl/normalizer/get-raw-decomposition.xml
index 377b1cd81cb6..3eaff220c060 100644
--- a/reference/intl/normalizer/get-raw-decomposition.xml
+++ b/reference/intl/normalizer/get-raw-decomposition.xml
@@ -13,14 +13,14 @@
   <methodsynopsis role="Normalizer">
    <modifier>public</modifier> <modifier>static</modifier> <type class="union"><type>string</type><type>null</type></type><methodname>Normalizer::getRawDecomposition</methodname>
    <methodparam><type>string</type><parameter>string</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>form</parameter><initializer>Normalizer::FORM_C</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>form</parameter><initializer><constant>Normalizer::FORM_C</constant></initializer></methodparam>
   </methodsynopsis>
 
   <para>&style.procedural;</para>
   <methodsynopsis>
    <type class="union"><type>string</type><type>null</type></type><methodname>normalizer_get_raw_decomposition</methodname>
    <methodparam><type>string</type><parameter>string</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>form</parameter><initializer>Normalizer::FORM_C</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>form</parameter><initializer><constant>Normalizer::FORM_C</constant></initializer></methodparam>
   </methodsynopsis>
 
   <para>
diff --git a/reference/intl/normalizer/is-normalized.xml b/reference/intl/normalizer/is-normalized.xml
index e8a072075e2c..a2427c0a2bd9 100644
--- a/reference/intl/normalizer/is-normalized.xml
+++ b/reference/intl/normalizer/is-normalized.xml
@@ -15,13 +15,13 @@
    <methodsynopsis role="Normalizer">
    <modifier>public</modifier> <modifier>static</modifier> <type>bool</type><methodname>Normalizer::isNormalized</methodname>
    <methodparam><type>string</type><parameter>string</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>form</parameter><initializer>Normalizer::FORM_C</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>form</parameter><initializer><constant>Normalizer::FORM_C</constant></initializer></methodparam>
   </methodsynopsis>
   <para>&style.procedural;</para>
   <methodsynopsis>
    <type>bool</type><methodname>normalizer_is_normalized</methodname>
    <methodparam><type>string</type><parameter>string</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>form</parameter><initializer>Normalizer::FORM_C</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>form</parameter><initializer><constant>Normalizer::FORM_C</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
    Checks if the provided string is already in the specified normalization
diff --git a/reference/intl/normalizer/normalize.xml b/reference/intl/normalizer/normalize.xml
index 31698abd9b9a..fac39e72fd5a 100644
--- a/reference/intl/normalizer/normalize.xml
+++ b/reference/intl/normalizer/normalize.xml
@@ -14,13 +14,13 @@
    <methodsynopsis role="Normalizer">
    <modifier>public</modifier> <modifier>static</modifier> <type class="union"><type>string</type><type>false</type></type><methodname>Normalizer::normalize</methodname>
    <methodparam><type>string</type><parameter>string</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>form</parameter><initializer>Normalizer::FORM_C</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>form</parameter><initializer><constant>Normalizer::FORM_C</constant></initializer></methodparam>
   </methodsynopsis>
   <para>&style.procedural;</para>
   <methodsynopsis>
    <type class="union"><type>string</type><type>false</type></type><methodname>normalizer_normalize</methodname>
    <methodparam><type>string</type><parameter>string</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>form</parameter><initializer>Normalizer::FORM_C</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>form</parameter><initializer><constant>Normalizer::FORM_C</constant></initializer></methodparam>
   </methodsynopsis>
   <para>Normalizes the input provided and returns the normalized string</para>
  </refsect1>
diff --git a/reference/intl/numberformatter/format.xml b/reference/intl/numberformatter/format.xml
index a6bbe17e1c20..1b06ee13373a 100644
--- a/reference/intl/numberformatter/format.xml
+++ b/reference/intl/numberformatter/format.xml
@@ -15,7 +15,7 @@
   <methodsynopsis role="NumberFormatter">
    <modifier>public</modifier> <type class="union"><type>string</type><type>false</type></type><methodname>NumberFormatter::format</methodname>
    <methodparam><type class="union"><type>int</type><type>float</type></type><parameter>num</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer>NumberFormatter::TYPE_DEFAULT</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer><constant>NumberFormatter::TYPE_DEFAULT</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
    &style.procedural;
@@ -24,7 +24,7 @@
    <type class="union"><type>string</type><type>false</type></type><methodname>numfmt_format</methodname>
    <methodparam><type>NumberFormatter</type><parameter>formatter</parameter></methodparam>
    <methodparam><type class="union"><type>int</type><type>float</type></type><parameter>num</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer>NumberFormatter::TYPE_DEFAULT</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer><constant>NumberFormatter::TYPE_DEFAULT</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
    Format a numeric value according to the formatter rules.
diff --git a/reference/intl/numberformatter/parse.xml b/reference/intl/numberformatter/parse.xml
index 79bc7975eeda..ba5420e523bf 100644
--- a/reference/intl/numberformatter/parse.xml
+++ b/reference/intl/numberformatter/parse.xml
@@ -15,7 +15,7 @@
   <methodsynopsis role="NumberFormatter">
    <modifier>public</modifier> <type class="union"><type>int</type><type>float</type><type>false</type></type><methodname>NumberFormatter::parse</methodname>
    <methodparam><type>string</type><parameter>string</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer>NumberFormatter::TYPE_DOUBLE</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer><constant>NumberFormatter::TYPE_DOUBLE</constant></initializer></methodparam>
    <methodparam choice="opt"><type>int</type><parameter role="reference">offset</parameter><initializer>&null;</initializer></methodparam>
   </methodsynopsis>
   <para>
@@ -25,7 +25,7 @@
    <type class="union"><type>int</type><type>float</type><type>false</type></type><methodname>numfmt_parse</methodname>
    <methodparam><type>NumberFormatter</type><parameter>formatter</parameter></methodparam>
    <methodparam><type>string</type><parameter>string</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer>NumberFormatter::TYPE_DOUBLE</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer><constant>NumberFormatter::TYPE_DOUBLE</constant></initializer></methodparam>
    <methodparam choice="opt"><type>int</type><parameter role="reference">offset</parameter><initializer>&null;</initializer></methodparam>
   </methodsynopsis>
   <para>
diff --git a/reference/intl/transliterator/create.xml b/reference/intl/transliterator/create.xml
index 574a0083e724..3176b335a14c 100644
--- a/reference/intl/transliterator/create.xml
+++ b/reference/intl/transliterator/create.xml
@@ -13,13 +13,13 @@
   <methodsynopsis role="Transliterator">
    <modifier>public</modifier> <modifier>static</modifier> <type class="union"><type>Transliterator</type><type>null</type></type><methodname>Transliterator::create</methodname>
    <methodparam><type>string</type><parameter>id</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>direction</parameter><initializer>Transliterator::FORWARD</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>direction</parameter><initializer><constant>Transliterator::FORWARD</constant></initializer></methodparam>
   </methodsynopsis>
   <para>&style.procedural;</para>
   <methodsynopsis>
    <type class="union"><type>Transliterator</type><type>null</type></type><methodname>transliterator_create</methodname>
    <methodparam><type>string</type><parameter>id</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>direction</parameter><initializer>Transliterator::FORWARD</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>direction</parameter><initializer><constant>Transliterator::FORWARD</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
    Opens a Transliterator by ID.
diff --git a/reference/intl/transliterator/createfromrules.xml b/reference/intl/transliterator/createfromrules.xml
index c623ecdcda6f..3722487e4e70 100644
--- a/reference/intl/transliterator/createfromrules.xml
+++ b/reference/intl/transliterator/createfromrules.xml
@@ -13,13 +13,13 @@
   <methodsynopsis role="Transliterator">
    <modifier>public</modifier> <modifier>static</modifier> <type class="union"><type>Transliterator</type><type>null</type></type><methodname>Transliterator::createFromRules</methodname>
    <methodparam><type>string</type><parameter>rules</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>direction</parameter><initializer>Transliterator::FORWARD</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>direction</parameter><initializer><constant>Transliterator::FORWARD</constant></initializer></methodparam>
   </methodsynopsis>
   <para>&style.procedural;</para>
   <methodsynopsis>
    <type class="union"><type>Transliterator</type><type>null</type></type><methodname>transliterator_create_from_rules</methodname>
    <methodparam><type>string</type><parameter>rules</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>direction</parameter><initializer>Transliterator::FORWARD</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>direction</parameter><initializer><constant>Transliterator::FORWARD</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
    Creates a Transliterator from rules.
diff --git a/reference/math/functions/round.xml b/reference/math/functions/round.xml
index c1a752b3ae4a..4e91471da3a6 100644
--- a/reference/math/functions/round.xml
+++ b/reference/math/functions/round.xml
@@ -11,7 +11,7 @@
    <type>float</type><methodname>round</methodname>
    <methodparam><type class="union"><type>int</type><type>float</type></type><parameter>num</parameter></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>precision</parameter><initializer>0</initializer></methodparam>
-   <methodparam choice="opt"><type class="union"><type>int</type><type>RoundingMode</type></type><parameter>mode</parameter><initializer>RoundingMode::HalfAwayFromZero</initializer></methodparam>
+   <methodparam choice="opt"><type class="union"><type>int</type><type>RoundingMode</type></type><parameter>mode</parameter><initializer><constant>RoundingMode::HalfAwayFromZero</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
    Returns the rounded value of <parameter>num</parameter> to
diff --git a/reference/pdo/pdo/quote.xml b/reference/pdo/pdo/quote.xml
index cfaa20578080..a87d26527891 100644
--- a/reference/pdo/pdo/quote.xml
+++ b/reference/pdo/pdo/quote.xml
@@ -12,7 +12,7 @@
   <methodsynopsis role="PDO">
    <modifier>public</modifier> <type class="union"><type>string</type><type>false</type></type><methodname>PDO::quote</methodname>
    <methodparam><type>string</type><parameter>string</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer>PDO::PARAM_STR</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer><constant>PDO::PARAM_STR</constant></initializer></methodparam>
   </methodsynopsis>
 
   <para>
diff --git a/reference/pdo/pdostatement/bindcolumn.xml b/reference/pdo/pdostatement/bindcolumn.xml
index adfe75e7fc0e..d9c6b3323983 100644
--- a/reference/pdo/pdostatement/bindcolumn.xml
+++ b/reference/pdo/pdostatement/bindcolumn.xml
@@ -13,7 +13,7 @@
    <modifier>public</modifier> <type>bool</type><methodname>PDOStatement::bindColumn</methodname>
    <methodparam><type class="union"><type>string</type><type>int</type></type><parameter>column</parameter></methodparam>
    <methodparam><type>mixed</type><parameter role="reference">var</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer>PDO::PARAM_STR</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer><constant>PDO::PARAM_STR</constant></initializer></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>maxLength</parameter><initializer>0</initializer></methodparam>
    <methodparam choice="opt"><type>mixed</type><parameter>driverOptions</parameter><initializer>&null;</initializer></methodparam>
   </methodsynopsis>
diff --git a/reference/pdo/pdostatement/bindparam.xml b/reference/pdo/pdostatement/bindparam.xml
index 16480acf2041..4eccba223a9f 100644
--- a/reference/pdo/pdostatement/bindparam.xml
+++ b/reference/pdo/pdostatement/bindparam.xml
@@ -13,7 +13,7 @@
    <modifier>public</modifier> <type>bool</type><methodname>PDOStatement::bindParam</methodname>
    <methodparam><type class="union"><type>string</type><type>int</type></type><parameter>param</parameter></methodparam>
    <methodparam><type>mixed</type><parameter role="reference">var</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer>PDO::PARAM_STR</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer><constant>PDO::PARAM_STR</constant></initializer></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>maxLength</parameter><initializer>0</initializer></methodparam>
    <methodparam choice="opt"><type>mixed</type><parameter>driverOptions</parameter><initializer>&null;</initializer></methodparam>
   </methodsynopsis>
diff --git a/reference/pdo/pdostatement/bindvalue.xml b/reference/pdo/pdostatement/bindvalue.xml
index 543d76027d7a..c00530288b4f 100644
--- a/reference/pdo/pdostatement/bindvalue.xml
+++ b/reference/pdo/pdostatement/bindvalue.xml
@@ -13,7 +13,7 @@
    <modifier>public</modifier> <type>bool</type><methodname>PDOStatement::bindValue</methodname>
    <methodparam><type class="union"><type>string</type><type>int</type></type><parameter>param</parameter></methodparam>
    <methodparam><type>mixed</type><parameter>value</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer>PDO::PARAM_STR</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer><constant>PDO::PARAM_STR</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
    Binds a value to a corresponding named or question mark placeholder
diff --git a/reference/pdo/pdostatement/fetch.xml b/reference/pdo/pdostatement/fetch.xml
index 230380721edb..04bf4d907770 100644
--- a/reference/pdo/pdostatement/fetch.xml
+++ b/reference/pdo/pdostatement/fetch.xml
@@ -11,8 +11,8 @@
   &reftitle.description;
   <methodsynopsis role="PDOStatement">
    <modifier>public</modifier> <type>mixed</type><methodname>PDOStatement::fetch</methodname>
-   <methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer>PDO::FETCH_DEFAULT</initializer></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>cursorOrientation</parameter><initializer>PDO::FETCH_ORI_NEXT</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer><constant>PDO::FETCH_DEFAULT</constant></initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>cursorOrientation</parameter><initializer><constant>PDO::FETCH_ORI_NEXT</constant></initializer></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>cursorOffset</parameter><initializer>0</initializer></methodparam>
   </methodsynopsis>
 
diff --git a/reference/pdo_pgsql/pdo/pgsql/getnotify.xml b/reference/pdo_pgsql/pdo/pgsql/getnotify.xml
index c5c74fe0db1a..0587557d7f1a 100644
--- a/reference/pdo_pgsql/pdo/pgsql/getnotify.xml
+++ b/reference/pdo_pgsql/pdo/pgsql/getnotify.xml
@@ -9,7 +9,7 @@
   &reftitle.description;
   <methodsynopsis role="Pdo\\Pgsql">
    <modifier>public</modifier> <type class="union"><type>array</type><type>false</type></type><methodname>Pdo\Pgsql::getNotify</methodname>
-   <methodparam choice="opt"><type>int</type><parameter>fetchMode</parameter><initializer>PDO::FETCH_DEFAULT</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>fetchMode</parameter><initializer><constant>PDO::FETCH_DEFAULT</constant></initializer></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>timeoutMilliseconds</parameter><initializer>0</initializer></methodparam>
   </methodsynopsis>
   <simpara>
diff --git a/reference/random/random/randomizer/getfloat.xml b/reference/random/random/randomizer/getfloat.xml
index 8ff2fe5003a4..2f55b3ef90d0 100644
--- a/reference/random/random/randomizer/getfloat.xml
+++ b/reference/random/random/randomizer/getfloat.xml
@@ -11,7 +11,7 @@
    <modifier>public</modifier> <type>float</type><methodname>Random\Randomizer::getFloat</methodname>
    <methodparam><type>float</type><parameter>min</parameter></methodparam>
    <methodparam><type>float</type><parameter>max</parameter></methodparam>
-   <methodparam choice="opt"><type>Random\IntervalBoundary</type><parameter>boundary</parameter><initializer>Random\IntervalBoundary::ClosedOpen</initializer></methodparam>
+   <methodparam choice="opt"><type>Random\IntervalBoundary</type><parameter>boundary</parameter><initializer><constant>Random\IntervalBoundary::ClosedOpen</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
    Returns a uniformly selected, equidistributed float from a requested interval.
diff --git a/reference/simplexml/functions/simplexml-import-dom.xml b/reference/simplexml/functions/simplexml-import-dom.xml
index af8443dbadc4..9862b34e1a52 100644
--- a/reference/simplexml/functions/simplexml-import-dom.xml
+++ b/reference/simplexml/functions/simplexml-import-dom.xml
@@ -10,7 +10,7 @@
   <methodsynopsis>
    <type class="union"><type>SimpleXMLElement</type><type>null</type></type><methodname>simplexml_import_dom</methodname>
    <methodparam><type>object</type><parameter>node</parameter></methodparam>
-   <methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>class_name</parameter><initializer>SimpleXMLElement::class</initializer></methodparam>
+   <methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>class_name</parameter><initializer><constant>SimpleXMLElement::class</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
    This function takes a node of a <link linkend="book.dom">DOM</link>
diff --git a/reference/simplexml/functions/simplexml-load-file.xml b/reference/simplexml/functions/simplexml-load-file.xml
index 9bf227d2d21d..e4164f9ca90b 100644
--- a/reference/simplexml/functions/simplexml-load-file.xml
+++ b/reference/simplexml/functions/simplexml-load-file.xml
@@ -12,7 +12,7 @@
   <methodsynopsis>
    <type class="union"><type>SimpleXMLElement</type><type>false</type></type><methodname>simplexml_load_file</methodname>
    <methodparam><type>string</type><parameter>filename</parameter></methodparam>
-   <methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>class_name</parameter><initializer>SimpleXMLElement::class</initializer></methodparam>
+   <methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>class_name</parameter><initializer><constant>SimpleXMLElement::class</constant></initializer></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>0</initializer></methodparam>
    <methodparam choice="opt"><type>string</type><parameter>namespace_or_prefix</parameter><initializer>""</initializer></methodparam>
    <methodparam choice="opt"><type>bool</type><parameter>is_prefix</parameter><initializer>&false;</initializer></methodparam>
diff --git a/reference/simplexml/functions/simplexml-load-string.xml b/reference/simplexml/functions/simplexml-load-string.xml
index 99da6dcf6680..2003795e80fc 100644
--- a/reference/simplexml/functions/simplexml-load-string.xml
+++ b/reference/simplexml/functions/simplexml-load-string.xml
@@ -12,7 +12,7 @@
   <methodsynopsis>
    <type class="union"><type>SimpleXMLElement</type><type>false</type></type><methodname>simplexml_load_string</methodname>
    <methodparam><type>string</type><parameter>data</parameter></methodparam>
-   <methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>class_name</parameter><initializer>SimpleXMLElement::class</initializer></methodparam>
+   <methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>class_name</parameter><initializer><constant>SimpleXMLElement::class</constant></initializer></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>0</initializer></methodparam>
    <methodparam choice="opt"><type>string</type><parameter>namespace_or_prefix</parameter><initializer>""</initializer></methodparam>
    <methodparam choice="opt"><type>bool</type><parameter>is_prefix</parameter><initializer>&false;</initializer></methodparam>
diff --git a/reference/spl/arrayobject/construct.xml b/reference/spl/arrayobject/construct.xml
index c61a5272c992..3a47cd919637 100644
--- a/reference/spl/arrayobject/construct.xml
+++ b/reference/spl/arrayobject/construct.xml
@@ -12,7 +12,7 @@
    <modifier>public</modifier> <methodname>ArrayObject::__construct</methodname>
    <methodparam choice="opt"><type class="union"><type>array</type><type>object</type></type><parameter>array</parameter><initializer>[]</initializer></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam>
-   <methodparam choice="opt"><type>string</type><parameter>iteratorClass</parameter><initializer>ArrayIterator::class</initializer></methodparam>
+   <methodparam choice="opt"><type>string</type><parameter>iteratorClass</parameter><initializer><constant>ArrayIterator::class</constant></initializer></methodparam>
   </constructorsynopsis>
   <para>
    This constructs a new array <type>object</type>.
diff --git a/reference/spl/cachingiterator/construct.xml b/reference/spl/cachingiterator/construct.xml
index fab322c1f058..3f67e0201f62 100644
--- a/reference/spl/cachingiterator/construct.xml
+++ b/reference/spl/cachingiterator/construct.xml
@@ -11,7 +11,7 @@
   <constructorsynopsis role="CachingIterator">
    <modifier>public</modifier> <methodname>CachingIterator::__construct</methodname>
    <methodparam><type>Iterator</type><parameter>iterator</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>CachingIterator::CALL_TOSTRING</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>CachingIterator::CALL_TOSTRING</constant></initializer></methodparam>
   </constructorsynopsis>
   
   &warn.undocumented.func;
diff --git a/reference/spl/recursivecachingiterator/construct.xml b/reference/spl/recursivecachingiterator/construct.xml
index 5b52216e70bc..f1cc3c85b855 100644
--- a/reference/spl/recursivecachingiterator/construct.xml
+++ b/reference/spl/recursivecachingiterator/construct.xml
@@ -11,7 +11,7 @@
   <constructorsynopsis role="RecursiveCachingIterator">
    <modifier>public</modifier> <methodname>RecursiveCachingIterator::__construct</methodname>
    <methodparam><type>Iterator</type><parameter>iterator</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>RecursiveCachingIterator::CALL_TOSTRING</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>RecursiveCachingIterator::CALL_TOSTRING</constant></initializer></methodparam>
   </constructorsynopsis>
   <para>
    Constructs a new <classname>RecursiveCachingIterator</classname>,
diff --git a/reference/spl/recursiveiteratoriterator/construct.xml b/reference/spl/recursiveiteratoriterator/construct.xml
index 3d53afa4a9ff..b6cfe12c6e36 100644
--- a/reference/spl/recursiveiteratoriterator/construct.xml
+++ b/reference/spl/recursiveiteratoriterator/construct.xml
@@ -11,7 +11,7 @@
   <constructorsynopsis role="RecursiveIteratorIterator">
    <modifier>public</modifier> <methodname>RecursiveIteratorIterator::__construct</methodname>
    <methodparam><type>Traversable</type><parameter>iterator</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer>RecursiveIteratorIterator::LEAVES_ONLY</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer><constant>RecursiveIteratorIterator::LEAVES_ONLY</constant></initializer></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam>
   </constructorsynopsis>
   <para>
diff --git a/reference/spl/recursiveregexiterator/construct.xml b/reference/spl/recursiveregexiterator/construct.xml
index 1795e5cf4333..60d522a4c685 100644
--- a/reference/spl/recursiveregexiterator/construct.xml
+++ b/reference/spl/recursiveregexiterator/construct.xml
@@ -12,7 +12,7 @@
    <modifier>public</modifier> <methodname>RecursiveRegexIterator::__construct</methodname>
    <methodparam><type>RecursiveIterator</type><parameter>iterator</parameter></methodparam>
    <methodparam><type>string</type><parameter>pattern</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer>RecursiveRegexIterator::MATCH</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer><constant>RecursiveRegexIterator::MATCH</constant></initializer></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>pregFlags</parameter><initializer>0</initializer></methodparam>
   </constructorsynopsis>
diff --git a/reference/spl/recursivetreeiterator/construct.xml b/reference/spl/recursivetreeiterator/construct.xml
index 872269c29c5a..443c2b165efa 100644
--- a/reference/spl/recursivetreeiterator/construct.xml
+++ b/reference/spl/recursivetreeiterator/construct.xml
@@ -11,9 +11,9 @@
   <constructorsynopsis role="RecursiveTreeIterator">
    <modifier>public</modifier> <methodname>RecursiveTreeIterator::__construct</methodname>
    <methodparam><type class="union"><type>RecursiveIterator</type><type>IteratorAggregate</type></type><parameter>iterator</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>RecursiveTreeIterator::BYPASS_KEY</initializer></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>cachingIteratorFlags</parameter><initializer>CachingIterator::CATCH_GET_CHILD</initializer></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer>RecursiveTreeIterator::SELF_FIRST</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>RecursiveTreeIterator::BYPASS_KEY</constant></initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>cachingIteratorFlags</parameter><initializer><constant>CachingIterator::CATCH_GET_CHILD</constant></initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer><constant>RecursiveTreeIterator::SELF_FIRST</constant></initializer></methodparam>
   </constructorsynopsis>
   <para>
    Constructs a new <classname>RecursiveTreeIterator</classname> from the supplied recursive iterator.
diff --git a/reference/spl/regexiterator/construct.xml b/reference/spl/regexiterator/construct.xml
index 2624ff2397a4..58c2058977f3 100644
--- a/reference/spl/regexiterator/construct.xml
+++ b/reference/spl/regexiterator/construct.xml
@@ -12,7 +12,7 @@
    <modifier>public</modifier> <methodname>RegexIterator::__construct</methodname>
    <methodparam><type>Iterator</type><parameter>iterator</parameter></methodparam>
    <methodparam><type>string</type><parameter>pattern</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer>RegexIterator::MATCH</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer><constant>RegexIterator::MATCH</constant></initializer></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>pregFlags</parameter><initializer>0</initializer></methodparam>
   </constructorsynopsis>
diff --git a/reference/spl/splfileinfo/setfileclass.xml b/reference/spl/splfileinfo/setfileclass.xml
index 6f2d8187b4be..d9f24e2f2b96 100644
--- a/reference/spl/splfileinfo/setfileclass.xml
+++ b/reference/spl/splfileinfo/setfileclass.xml
@@ -10,7 +10,7 @@
   &reftitle.description;
   <methodsynopsis role="SplFileInfo">
    <modifier>public</modifier> <type>void</type><methodname>SplFileInfo::setFileClass</methodname>
-   <methodparam choice="opt"><type>string</type><parameter>class</parameter><initializer>SplFileObject::class</initializer></methodparam>
+   <methodparam choice="opt"><type>string</type><parameter>class</parameter><initializer><constant>SplFileObject::class</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
    Use this method to set a custom class which will be used when
diff --git a/reference/spl/splfileinfo/setinfoclass.xml b/reference/spl/splfileinfo/setinfoclass.xml
index bc01762d7076..d4633760bf6f 100644
--- a/reference/spl/splfileinfo/setinfoclass.xml
+++ b/reference/spl/splfileinfo/setinfoclass.xml
@@ -10,7 +10,7 @@
   &reftitle.description;
   <methodsynopsis role="SplFileInfo">
    <modifier>public</modifier> <type>void</type><methodname>SplFileInfo::setInfoClass</methodname>
-   <methodparam choice="opt"><type>string</type><parameter>class</parameter><initializer>SplFileInfo::class</initializer></methodparam>
+   <methodparam choice="opt"><type>string</type><parameter>class</parameter><initializer><constant>SplFileInfo::class</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
    Use this method to set a custom class which will be used when
diff --git a/reference/zip/ziparchive/addfile.xml b/reference/zip/ziparchive/addfile.xml
index 757b4027a3c6..ced8eb490b45 100644
--- a/reference/zip/ziparchive/addfile.xml
+++ b/reference/zip/ziparchive/addfile.xml
@@ -12,8 +12,8 @@
    <methodparam><type>string</type><parameter>filepath</parameter></methodparam>
    <methodparam choice="opt"><type>string</type><parameter>entryname</parameter><initializer>""</initializer></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>start</parameter><initializer>0</initializer></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>length</parameter><initializer>ZipArchive::LENGTH_TO_END</initializer></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>ZipArchive::FL_OVERWRITE</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>length</parameter><initializer><constant>ZipArchive::LENGTH_TO_END</constant></initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>ZipArchive::FL_OVERWRITE</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
    Adds a file to a ZIP archive from a given path.
diff --git a/reference/zip/ziparchive/addfromstring.xml b/reference/zip/ziparchive/addfromstring.xml
index 9bf4265b4e85..7eb1e3165845 100644
--- a/reference/zip/ziparchive/addfromstring.xml
+++ b/reference/zip/ziparchive/addfromstring.xml
@@ -11,7 +11,7 @@
    <modifier>public</modifier> <type>bool</type><methodname>ZipArchive::addFromString</methodname>
    <methodparam><type>string</type><parameter>name</parameter></methodparam>
    <methodparam><type>string</type><parameter>content</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>ZipArchive::FL_OVERWRITE</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>ZipArchive::FL_OVERWRITE</constant></initializer></methodparam>
   </methodsynopsis>
   <para>
    Add a file to a ZIP archive using its contents.
diff --git a/reference/zip/ziparchive/replacefile.xml b/reference/zip/ziparchive/replacefile.xml
index b39e1f2c734e..7afb18e02aaa 100644
--- a/reference/zip/ziparchive/replacefile.xml
+++ b/reference/zip/ziparchive/replacefile.xml
@@ -12,7 +12,7 @@
    <methodparam><type>string</type><parameter>filepath</parameter></methodparam>
    <methodparam><type>int</type><parameter>index</parameter></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>start</parameter><initializer>0</initializer></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>length</parameter><initializer>ZipArchive::LENGTH_TO_END</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>length</parameter><initializer><constant>ZipArchive::LENGTH_TO_END</constant></initializer></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam>
   </methodsynopsis>
   <para>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.