Edit report at https://bugs.php.net/bug.php?id=55153&edit=1

 ID:                 55153
 User updated by:    davidvleung at gmail dot com
 Reported by:        davidvleung at gmail dot com
 Summary:            please accept variable null params
-Status:             Open
+Status:             Closed
 Type:               Feature/Change Request
 Package:            PDO related
 Operating System:   win7
 PHP Version:        5.3SVN-2011-07-07 (SVN)
 Block user comment: N
 Private report:     N

 New Comment:

nevermind, haven't full qualified as an error.


Previous Comments:
------------------------------------------------------------------------
[2011-07-06 21:22:30] 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!



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=55153&edit=1

Reply via email to