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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 17:01:30 2025 UTC