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
 [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 Apr 19 00:01:29 2024 UTC