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

Reply via email to