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 this is not your bug, you can add a comment by following this link.
If this is your bug, but 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

Add a Patch

Pull Requests

Add a Pull Request

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 Apr 25 05:01:33 2024 UTC