Skip to content

Setting PDO::ATTR_STRINGIFY_FETCHES throws exception #1474

@SakiTakamachi

Description

@SakiTakamachi

It is not reasonable to communicate forever in the PR that have already been merged, so I have created a new issue.
Reference: #1468

I've been working on this issue for almost a month now and the PR that fixes the issue was already merged into the dev branch 3 weeks ago.
What's stopping you from releasing it?

I'm sure all contributors willing to help this repository will do so once it's clear what the obstacles are that are preventing a release.

PHP version
PHP 8.1.22+ or 8.2.9+ or 8.3.0+

PHP SQLSRV or PDO_SQLSRV version
All version

Problem description
Due to modifications made to PDO Core's set_attributes function, attempting to set PDO::ATTR_STRINGIFY_FETCHES will throw an exception.

Expected behavior and actual behavior
I was expecting no exception to be thrown.

Actual result:

Fatal error: Uncaught PDOException: SQLSTATE[IMSSP]: An invalid attribute was designated on the PDO object. in /var/www/html/test.php:5
Stack trace:
#0 /var/www/html/test.php(5): PDO->setAttribute(17, false)
#1 {main}
  thrown in /var/www/html/test.php on line 5

Repro code or steps to reproduce

<?php

// my env
$pdo = new PDO('sqlsrv:server=mssql-server;database=test;', 'test_user', 'p@ssw0rd');
$pdo->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false);

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions