Re: [RFC] [Discussion] Minimum supported versions for PHP 8.6
| From: | Eric Norris | Date: | Thu, 02 Jul 2026 15:51:26 +0000 |
| Subject: | Re: [RFC] [Discussion] Minimum supported versions for PHP 8.6 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-131714@lists.php.net to get a copy of this message | ||
On Thu, Jul 2, 2026 at 11:42 AM <go.al.ni@gmail.com> wrote:
>
> > Users that are on MySQL or MariaDB databases from before this feature was implemented may
> > upgrade to PHP 8.6, but would not be able to use persistent connections. This means that their
> > software could continue to work, but they might lose a performance optimization.
>
> Please clarify this.
> Users on older mysql will hit connection error immediately after
> upgrading to 8.6. So saying "their software could continue to work" is
> misleading. Their PHP code must be modified before upgrading - turning
> PDO::ATTR_PERSISTENT to false or removing it entirely. And only after
> that it would continue to work.
Is this true? Having looked at the persistent connection code, I
believe it would silently handle the error by simply discarding the
connection and creating a new one. Thus, "their software could
continue to work, but they might lose a performance optimization."
Source: https://github.com/php/php-src/pull/21857/files#diff-9a6d6a4359a98668fef29400492f877938424d1b1d2e84933c91ab34161cf360R417-R428