php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55328 bug in PDOStatement::bindColumn()
Submitted: 2011-07-31 19:50 UTC Modified: 2013-10-15 11:54 UTC
From: filakhtov at gmail dot com Assigned:
Status: No Feedback Package: PDO related
PHP Version: 5.3.6 OS: debian squeeze
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: filakhtov at gmail dot com
New email:
PHP Version: OS:

 

 [2011-07-31 19:50 UTC] filakhtov at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/pdostatement.bindcolumn%23Parameters
---
I'm trying to use PDOStatement::bindColumn() method, but it always return TRUE, if it bound variable to column, and even if it does not. Also it produce a WARNING, ignoring PDO::ATTR_ERRMODE value, but seems warning reporting is now fixed in snapshots.

I think it should return FALSE on failure (that is what written in docs).

P. S. Sorry me for my bad english...

Expected result:
----------------
return FALSE if column does not bound successfully

Actual result:
--------------
TRUE, if column is bound or if it is not

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-08-01 17:18 UTC] filakhtov at gmail dot com
Forgot to notice, what FALSE will be returned if column not found in current rowset.
 [2013-06-12 04:04 UTC] ssufficool@php.net
-Status: Open +Status: Feedback
 [2013-06-12 04:04 UTC] ssufficool@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


From your last comment it appears you no longer see this as a bug? Did you find 
that the method returns False when the column does not exist?
 [2013-10-15 11:54 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 20:01:29 2024 UTC