Bug #64334 [Opn->Csd]: bindParam() does not requre colon for parameter
| From: | shri dot amin at gmail dot com | Date: | Sat, 02 Mar 2013 17:00:27 +0000 |
| Subject: | Bug #64334 [Opn->Csd]: bindParam() does not requre colon for parameter | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-177524@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64334&edit=1
ID: 64334
User updated by: shri dot amin at gmail dot com
Reported by: shri dot amin at gmail dot com
Summary: bindParam() does not requre colon for parameter
-Status: Open
+Status: Closed
Type: Bug
Package: PDO related
Operating System: all
PHP Version: 5.3.22
Block user comment: N
Private report: N
New Comment:
ok fine close out
Previous Comments:
------------------------------------------------------------------------
[2013-03-02 08:35:58] jellofishi at gmail dot com
Why is this a bug ? if the functionality works, shouldn't the documentation be
updated ?
------------------------------------------------------------------------
[2013-03-02 00:19:39] shri dot amin at gmail dot com
Description:
------------
the bindParam($param, $var) PDO function does not require the colon(:) for the param.
Test script:
---------------
$stmt = $dbh->prepare("INSERT INTO foo VALUES (:email, :password)");
$stmt->bindParam('email', $_POST['email']); //this works, but shouldn't
$stmt->bindParam('password', $_POST['password']); //this works, but
shouldn't
Expected result:
----------------
obviously the first param of bindParam() should require the colon(:)
Actual result:
--------------
the first param of bindParam() does not require the colon(:)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64334&edit=1