language-snippets.ent
21e1338e9721534c00085ff3cff25e2dd2e84dc9
...
...
@@ -724,6 +724,30 @@ use.</simpara></note>'>
724
724
</para>
725
725
</caution>'>
726
726

727
+
<!ENTITY sort.callback.description.presort '<caution xmlns="http://docbook.org/ns/docbook">
728
+
<para>
729
+
The sorting callback must handle any value from any array in any order,
730
+
regardless of the order they were originally provided.
731
+
This is because each individual array is first sorted before being compared against other arrays.
732
+

733
+
For example:
734
+
<programlisting role="php">
735
+
<![CDATA[
736
+
<?php
737
+
$arrayA = ["string", 1];
738
+
$arrayB = [["value" => 1]];
739
+
// $item1 and $item2 can be any of "string", 1 or ["value" => 1]
740
+
$compareFunc = static function ($item1, $item2) {
741
+
$value1 = is_string($item1) ? strlen($item1) : (is_array($item1) ? $item1["value"] : $item1);
742
+
$value2 = is_string($item2) ? strlen($item2) : (is_array($item2) ? $item2["value"] : $item2);
743
+
return $value1 <=> $value2;
744
+
};
745
+
?>
746
+
]]>
747
+
</programlisting>
748
+
</para>
749
+
</caution>'>
750
+

727
751
<!ENTITY ini.shorthandbytes '<simpara xmlns="http://docbook.org/ns/docbook">When an <type>int</type> is used, the
728
752
value is measured in bytes. Shorthand notation, as described
729
753
in <link linkend="faq.using.shorthandbytes">this FAQ</link>, may also be used.
...
...
@@ -1591,6 +1615,17 @@ it is inserted with (e.g.) <function xmlns="http://docbook.org/ns/docbook">DOMNo
1591
1615
of the <link linkend="libxml.constants">libxml option constants</link>.
1592
1616
</para>'>
1593
1617

1618
+
<!ENTITY dom.parameters.register_node_ns '<varlistentry xmlns="http://docbook.org/ns/docbook">
1619
+
<term><parameter>registerNodeNS</parameter></term>
1620
+
<listitem>
1621
+
<para>
1622
+
Whether to automatically register the in-scope namespace prefixes of the context node to the <classname>DOMXPath</classname> object.
1623
+
This can be used to avoid needing to call <methodname>DOMXPath::registerNamespace</methodname> manually for each in-scope namespaces.
1624
+
When a namespace prefix conflict exists, only the nearest descendant namespace prefix is registered.
1625
+
</para>
1626
+
</listitem>
1627
+
</varlistentry>'>
1628
+

1594
1629
<!ENTITY dom.errors.hierarchy.parent '<varlistentry xmlns="http://docbook.org/ns/docbook">
1595
1630
<term><constant>DOM_HIERARCHY_REQUEST_ERR</constant></term>
1596
1631
<listitem>
...
...
@@ -1886,7 +1921,7 @@ The behaviour of these functions is affected by settings in &php.ini;.
1886
1921
</simpara>'>
1887
1922

1888
1923
<!ENTITY ini.php.constants 'For further details and definitions of the
1889
-
PHP_INI_* modes, see the <xref xmlns="http://docbook.org/ns/docbook" linkend="configuration.changes.modes"/>.'>
1924
+
INI_* modes, see the <xref xmlns="http://docbook.org/ns/docbook" linkend="configuration.changes.modes"/>.'>
1890
1925

1891
1926
<!-- Used in reference/$extname/constants.xml -->
1892
1927
<!ENTITY extension.constants '<simpara xmlns="http://docbook.org/ns/docbook">
...
...
@@ -3368,7 +3403,7 @@ local: {
3368
3403
</row>
3369
3404
<row>
3370
3405
<entry>queryType</entry>
3371
-
<entry><type>int</type></entry>
3406
+
<entry><type>string</type></entry>
3372
3407
<entry>
3373
3408
<para>
3374
3409
The query type for evaluating queries with indexed, encrypted
3375
3410