GithubHelp home page GithubHelp logo

Comments (14)

absci avatar absci commented on July 3, 2024 10

The new release should be ready by the end of this week.

from msphpsql.

absci avatar absci commented on July 3, 2024 8

Hi, I'll be working on the hotfix release.

from msphpsql.

David-Engel avatar David-Engel commented on July 3, 2024 4

Had a discussion with the team the other day. We'll release a hotfix to accommodate the behavior change made upstream. The original fix needs some adjustment, though. We only release PHP minor-version-specific binaries, so the compile time #if logic needs adjustment. @absci is working on the release.

from msphpsql.

qqzm avatar qqzm commented on July 3, 2024 4

Hi,
Is this hotfix available yet? If not, what is the timescale?
How do we install it?

Thanks,
Stephen

from msphpsql.

SakiTakamachi avatar SakiTakamachi commented on July 3, 2024 3

Thank you for releasing the hotfix!
Thank you for taking the time out of your busy schedule.

I close this issue.

from msphpsql.

SakiTakamachi avatar SakiTakamachi commented on July 3, 2024 1

@David-Engel
I've opened an issue, so please respond here.
We've been left alone for about a week, so I'm hoping for some response soon.

from msphpsql.

SakiTakamachi avatar SakiTakamachi commented on July 3, 2024 1

@absci
Thank you. This is truly great news.

from msphpsql.

David-Engel avatar David-Engel commented on July 3, 2024 1

removing the ATTR_STRINGIFY_FETCHES attribute

That should work for you, too, since that's the source of the issue being fixed. 👍

from msphpsql.

youkidearitai avatar youkidearitai commented on July 3, 2024

@David-Engel Upstream(php-src) rejected to your opinion and we should fight to Microsoft pressure. You should release new version that include this PR.
related: php/php-src#12038

from msphpsql.

SakiTakamachi avatar SakiTakamachi commented on July 3, 2024

@David-Engel
I understand the situation. Thank you very much for your efforts in implementing the hotfix.

I am very relieved to receive this news.
We are looking forward to the release.

from msphpsql.

youkidearitai avatar youkidearitai commented on July 3, 2024

@absci
@David-Engel
Thanks very much for moving forward and I'm sorry to using strong words.

from msphpsql.

agould avatar agould commented on July 3, 2024

I see 5.11.1 has been released to fix this.

Will there also be a 5.10.x release that resolves this issue? My company is unfortunately stuck on SQL Server 2012 so I cannot use 5.11.x.

from msphpsql.

David-Engel avatar David-Engel commented on July 3, 2024

Will there also be a 5.10.x release that resolves this issue? My company is unfortunately stuck on SQL Server 2012 so I cannot use 5.11.x.

@agould

There are no plans to backport the change to 5.10.

Have you tried 5.11 against SQL Server 2012? Since most of the functionality is in the underlying ODBC driver and we haven't made significant changes from 5.10 to 5.11, I would be surprised if 5.11 didn't work fine against it. I realize 5.11 doesn't technically "support" SQL 2012, but that's mainly because we stop testing against SQL versions that are out of support.

from msphpsql.

agould avatar agould commented on July 3, 2024

@David-Engel Thanks for the response. I have not tried 5.11. I will give it a try in one of our test environments.

One thing I did try this morning was removing the ATTR_STRINGIFY_FETCHES attribute:

$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
//$dbh->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false);
$dbh->setAttribute(PDO::SQLSRV_ATTR_FETCHES_NUMERIC_TYPE, true);
$dbh->setAttribute(PDO::SQLSRV_ATTR_QUERY_TIMEOUT, 60);

We'd been using the first two lines since we used MySQL/MariaDB, prior to moving to SQL Server about 5 years ago, so I never thought to revisit these attributes as they just worked.

Without the ATTR_STRINGIFY_FETCHES, I don't see any negative affects. Seems the SQLSRV_ATTR_FETCHES_NUMERIC_TYPE attribute handles what we need.

from msphpsql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.