You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As is, for PDO_MySQL this is a connection attribute, so setting it after the the PDO instance has been constructed, won't change anything. Still, it should be possible to retrieve the timeout, I guess.
Well, apparently none of the other bundled PDO drivers supports getting the value of PDO::ATTR_TIMEOUT either, so I think we should leave it as this, but document it (currently, PDO::ATTR_TIMEOUT is explicitly listed as $attribute for PDO::getAttribute()).
cmb69
changed the title
PDO MySQL Can get ATTR_TIMEOUT but able to set it
PDO::getAttribute() does not support PDO::ATTR_TIMEOUT
Nov 30, 2022
Description
The following code:
It seems like not covered by https://github.com/php/php-src/blob/master/ext/pdo_mysql/mysql_driver.c#L490
Resulted in this output:
But I expected this output instead:
PHP Version
PH P 8.1.12
Operating System
macOS Ventura 13.1 Beta 2
The text was updated successfully, but these errors were encountered: