Open shyim opened 1 year ago
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()
).
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