php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #73851 Extend PDO::PARAM_* types with fload/double data type
Submitted: 2017-01-02 13:39 UTC Modified: 2017-01-02 17:44 UTC
From: dorin dot marcoci at gmail dot com Assigned: cmb (profile)
Status: Duplicate Package: PDO Core
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2017-01-02 13:39 UTC] dorin dot marcoci at gmail dot com
Description:
------------
To define PDO::PARAM_FLOAT (DOUBLE)

It prevents to return float native types in PDO driver implementations.
Here https://github.com/php/php-src/blob/master/ext/pdo/pdo_stmt.c#L554 floats are not considered and can't be passed in "value" buffer, except using ZVALs.

PDO::PARAM_* types should match ZVAL types where it make sense.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-02 17:44 UTC] cmb@php.net
-Status: Open +Status: Duplicate -Assigned To: +Assigned To: cmb
 [2017-01-02 17:44 UTC] cmb@php.net
Duplicate of request #43203.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 13:01:29 2024 UTC