Re: [PHP-DEV] [RFC] [Discussion] Minimum supported versions for PHP 8.6
[email protected] (Eric Norris)
| Newsgroups | php.internals |
|---|---|
| Message-ID | <CA+NMNO31Q2rmGirKMUd-FEorrgqvrBTZP8AgQ-7n7W7od7=3_w@mail.gmail.com> |
On Thu, Jul 2, 2026 at 11:42 AM <[email protected]> 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