php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53194 path for dblib_stmt.c
Submitted: 2010-10-28 17:55 UTC Modified: 2010-10-28 18:47 UTC
From: mikhail dot v dot gavrilov at gmail dot com Assigned:
Status: Not a bug Package: MSSQL related
PHP Version: 5.3.3 OS: *nix && win
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
45 + 4 = ?
Subscribe to this entry?

 
 [2010-10-28 17:55 UTC] mikhail dot v dot gavrilov at gmail dot com
Description:
------------
I fix crash PHP_PDO_DBLIB when you try get MONEY fields from MSSQL database via 
FreeTDS data provider.

For fixing this issue you must replace 174 line:
val->len = spprintf(val->data, 0, "%.4f", money_value);
to
val->len = spprintf(&val->data, 0, "%.4f", money_value);

Please apply my path.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-28 18:47 UTC] felipe@php.net
-Status: Open +Status: Bogus
 [2010-10-28 18:47 UTC] felipe@php.net
This issue already has been fixed, see bug #52546.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 21:01:30 2024 UTC