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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dorin dot marcoci at gmail dot com
New email:
PHP Version: OS:

 

 [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: Sun Nov 24 05:01:32 2024 UTC