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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mikhail dot v dot gavrilov at gmail dot com
New email:
PHP Version: OS:

 

 [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-2022 The PHP Group
All rights reserved.
Last updated: Tue Jan 18 08:03:18 2022 UTC