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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
32 + 47 = ?
Subscribe to this entry?

 
 [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: Thu Apr 25 20:01:45 2024 UTC