[doc-en] master: Pdo\Pgsql: document session state reset on persistent connections (PHP 8.6) (#6084)
| From: | KentarouTakeda via GitHub | Date: | Sun, 15 Nov 2026 15:18:27 +0000 |
| Subject: | [doc-en] master: Pdo\Pgsql: document session state reset on persistent connections (PHP 8.6) (#6084) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-23956@lists.php.net to get a copy of this message | ||
Author: KentarouTakeda (KentarouTakeda)
Committer: GitHub (web-flow)
Pusher: lacatoire
Date: 2026-11-15T16:18:24+01:00
Commit: https://github.com/php/doc-en/commit/0133a72735be1e31b09a8276a819eaaed50f59d8
Raw diff: https://github.com/php/doc-en/commit/0133a72735be1e31b09a8276a819eaaed50f59d8.diff
Pdo\Pgsql: document session state reset on persistent connections (PHP 8.6) (#6084)
Changed paths:
M appendices/migration86/incompatible.xml
M reference/pdo_pgsql/reference.xml
Diff:
diff --git a/appendices/migration86/incompatible.xml b/appendices/migration86/incompatible.xml
index bb64e35ce4cf..27913441f704 100644
--- a/appendices/migration86/incompatible.xml
+++ b/appendices/migration86/incompatible.xml
@@ -491,6 +491,18 @@ var_dump(unpack('s<value', "\x01\x00"));
</sect2>
+ <sect2 xml:id="migration86.incompatible.pdo-pgsql">
+ <title>PDO_PGSQL</title>
+
+ <simpara>
+ When the last <classname>PDO</classname> object using a persistent
+ connection is destroyed, settings changed with <literal>SET</literal>,
+ temporary tables, and other session state are now reset.
+ Prepared statements created with <literal>PREPARE</literal> are kept.
+ </simpara>
+
+ </sect2>
+
<sect2 xml:id="migration86.incompatible.pgsql">
<title>PGSQL</title>
diff --git a/reference/pdo_pgsql/reference.xml b/reference/pdo_pgsql/reference.xml
index 7006801fe634..55ab57c3e78e 100644
--- a/reference/pdo_pgsql/reference.xml
+++ b/reference/pdo_pgsql/reference.xml
@@ -36,6 +36,15 @@
values and how to bind data with <constant>PDO::PARAM_LOB</constant>.
</simpara>
</note>
+ <note>
+ <simpara>
+ As of PHP 8.6.0, when the last <classname>PDO</classname> object using
+ a persistent connection is destroyed, settings changed with
+ <literal>SET</literal>, temporary tables, and other session state
+ are reset.
+ Prepared statements created with <literal>PREPARE</literal> are kept.
+ </simpara>
+ </note>
</section>
</partintro>