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
 [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: Thu Apr 25 22:01:29 2024 UTC