Skip to content

Commit 8d40a1f

Browse files
authored
ext/pdo: Document PHP 8.5.0 deprecations in PDO constants and methods (#5635)
1 parent 0594bf2 commit 8d40a1f

7 files changed

Lines changed: 52 additions & 9 deletions

File tree

reference/pdo/constants.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,12 @@
736736
(<type>int</type>)
737737
</term>
738738
<listitem>
739+
<warning>
740+
<simpara>
741+
This constant has been <emphasis>DEPRECATED</emphasis> as of PHP 8.5.0.
742+
Use <constant>Pdo\Sqlite::DETERMINISTIC</constant> instead.
743+
</simpara>
744+
</warning>
739745
<simpara>
740746
Specifies that a function created with <methodname>PDO::sqliteCreateFunction</methodname>
741747
is deterministic, i.e. it always returns the same result given the same inputs within

reference/pdo_firebird/constants.xml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,23 @@
33
<section xml:id="ref.pdo-firebird.constants" xmlns="http://docbook.org/ns/docbook">
44
&reftitle.constants;
55
&pdo.driver-constants;
6+
<warning>
7+
<simpara>
8+
The constants listed below have been <emphasis>DEPRECATED</emphasis>
9+
as of PHP 8.5.0. Use the corresponding <classname>Pdo\Firebird</classname>
10+
constants instead.
11+
</simpara>
12+
</warning>
613
<variablelist>
714
<varlistentry xml:id="pdo.constants.fb-attr-date-format">
815
<term>
916
<constant>PDO::FB_ATTR_DATE_FORMAT</constant>
1017
(<type>int</type>)
1118
</term>
1219
<listitem>
13-
<para>
20+
<simpara>
1421
&Alias; <constant>Pdo\Firebird::ATTR_DATE_FORMAT</constant>.
15-
</para>
22+
</simpara>
1623
</listitem>
1724
</varlistentry>
1825
<varlistentry xml:id="pdo.constants.fb-attr-time-format">
@@ -21,9 +28,9 @@
2128
(<type>int</type>)
2229
</term>
2330
<listitem>
24-
<para>
31+
<simpara>
2532
&Alias; <constant>Pdo\Firebird::ATTR_TIME_FORMAT</constant>.
26-
</para>
33+
</simpara>
2734
</listitem>
2835
</varlistentry>
2936
<varlistentry xml:id="pdo.constants.fb-attr-timestamp-format">
@@ -32,9 +39,9 @@
3239
(<type>int</type>)
3340
</term>
3441
<listitem>
35-
<para>
42+
<simpara>
3643
&Alias; <constant>Pdo\Firebird::ATTR_TIMESTAMP_FORMAT</constant>.
37-
</para>
44+
</simpara>
3845
</listitem>
3946
</varlistentry>
4047
</variablelist>

reference/pdo_mysql/constants.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
<section xml:id="ref.pdo-mysql.constants" xmlns="http://docbook.org/ns/docbook">
44
&reftitle.constants;
55
&pdo.driver-constants;
6+
<warning>
7+
<simpara>
8+
The constants listed below have been <emphasis>DEPRECATED</emphasis>
9+
as of PHP 8.5.0. Use the corresponding <classname>Pdo\Mysql</classname>
10+
constants instead.
11+
</simpara>
12+
</warning>
613
<variablelist>
714
<varlistentry xml:id="pdo.constants.mysql-attr-use-buffered-query">
815
<term>

reference/pdo_odbc/constants.xml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,22 @@
1111
(<type>string</type>)
1212
</term>
1313
<listitem>
14-
<para>
15-
16-
</para>
14+
<simpara>
15+
Describes the ODBC library linked against the PDO_ODBC extension.
16+
Possible values include <literal>unixODBC</literal>,
17+
<literal>iODBC</literal>, or <literal>generic</literal>.
18+
</simpara>
1719
</listitem>
1820
</varlistentry>
21+
</variablelist>
22+
<warning>
23+
<simpara>
24+
The constants listed below have been <emphasis>DEPRECATED</emphasis>
25+
as of PHP 8.5.0. Use the corresponding <classname>Pdo\Odbc</classname>
26+
constants instead.
27+
</simpara>
28+
</warning>
29+
<variablelist>
1930
<varlistentry xml:id="pdo.constants.odbc-attr-use-cursor-library">
2031
<term>
2132
<constant>PDO::ODBC_ATTR_USE_CURSOR_LIBRARY</constant>

reference/pdo_sqlite/pdo_overloaded/sqliteCreateAggregate.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
</refpurpose>
99
</refnamediv>
1010

11+
<refsynopsisdiv>
12+
&warn.deprecated.function-8-5-0;
13+
</refsynopsisdiv>
14+
1115
<refsect1 role="description">
1216
&reftitle.description;
1317
<methodsynopsis>

reference/pdo_sqlite/pdo_overloaded/sqliteCreateCollation.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
</refpurpose>
99
</refnamediv>
1010

11+
<refsynopsisdiv>
12+
&warn.deprecated.function-8-5-0;
13+
</refsynopsisdiv>
14+
1115
<refsect1 role="description">
1216
&reftitle.description;
1317
<methodsynopsis>

reference/pdo_sqlite/pdo_overloaded/sqliteCreateFunction.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
</refpurpose>
99
</refnamediv>
1010

11+
<refsynopsisdiv>
12+
&warn.deprecated.function-8-5-0;
13+
</refsynopsisdiv>
14+
1115
<refsect1 role="description">
1216
&reftitle.description;
1317
<methodsynopsis>

0 commit comments

Comments
 (0)