-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to check PDO::ATTR_STRINGIFY_FETCHES configuration #12969
Comments
This is a known issue. In #12793 I made a fix for this issue on master. I targeted the master branch for changes because there were some other existing behavior changes. @Girgias |
Thx, I'd love to see this backported! Currently I'm working on phpstan-doctrine feature that attempts to autodetect stringification behaviour and this is blocking issue for me. |
I have created the backport PR to 8.2 for the time being. |
* PHP-8.2: Fix GH-12969: Fixed PDO::getAttribute() to get PDO::ATTR_STRINGIFY_FETCHES
* PHP-8.3: Fix GH-12969: Fixed PDO::getAttribute() to get PDO::ATTR_STRINGIFY_FETCHES
Thanks! |
Description
The following code:
Resulted in this output:
But I expected this output instead:
It seems like I cannot verify how PDO is configured regarding this option. When
$pdo->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, true)
is used,true
is returned and the behaviour changes. This behaviour applies for at least mysql, pgsql and sqlite.Full dockerized replication repository: https://github.com/janedbal/php-pdo-get-attribute-bug
PHP Version
PHP 8.3.0
Operating System
No response
The text was updated successfully, but these errors were encountered: