php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #55153 please accept variable null params
Submitted: 2011-07-06 21:22 UTC Modified: 2011-07-06 23:16 UTC
From: davidvleung at gmail dot com Assigned:
Status: Closed Package: PDO related
PHP Version: 5.3SVN-2011-07-07 (SVN) OS: win7
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: davidvleung at gmail dot com
New email:
PHP Version: OS:

 

 [2011-07-06 21:22 UTC] davidvleung at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/pdostatement.bindparam%23Parameters
---

bindParam() really ought to be able to accept a null parameter.  

$varNull;
$stmt->bindParam(":param1",$varNull);

would make much more sense rather than the application checking and converting 
the 
null every time.  I imagine a simple empty check would work fine within the 
implementation.  Seems similar to bug#15719. Pleeease consider this 
functionality as it would save a ton of us more time. 

Thanks!


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-07-06 23:16 UTC] davidvleung at gmail dot com
-Status: Open +Status: Closed
 [2011-07-06 23:16 UTC] davidvleung at gmail dot com
nevermind, haven't full qualified as an error.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC