Bug #55328 [Opn]: bug in PDOStatement::bindColumn()

From: Date: Mon, 01 Aug 2011 17:18:51 +0000
Subject: Bug #55328 [Opn]: bug in PDOStatement::bindColumn()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-162340@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55328&edit=1

 ID:                 55328
 User updated by:    filakhtov at gmail dot com
 Reported by:        filakhtov at gmail dot com
 Summary:            bug in PDOStatement::bindColumn()
 Status:             Open
 Type:               Bug
 Package:            PDO related
 Operating System:   debian squeeze
 PHP Version:        5.3.6
 Block user comment: N
 Private report:     N

 New Comment:

Forgot to notice, what FALSE will be returned if column not found in current rowset.


Previous Comments:
------------------------------------------------------------------------
[2011-07-31 19:50:46] 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


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



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


Thread (4 messages)

« previous php.bugs (#162340) next »