#43448 [Com]: PDO Object comparison failure

From: Date: Sat, 29 Nov 2008 02:32:41 +0000
Subject: #43448 [Com]: PDO Object comparison failure
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-131467@lists.php.net to get a copy of this message
ID: 43448 Comment by: olafurw at gmail dot com Reported By: desarrollo at c17 dot net Status: Open Bug Type: PDO related Operating System: Ubuntu Linux 7.10 PHP Version: 5.2.5 New Comment: This might be fixed already. I got the expected result on this version of PHP - Version 5.3.0alpha3-dev - Linux Previous Comments: ------------------------------------------------------------------------ [2007-11-29 12:43:32] desarrollo at c17 dot net Description: ------------ When I try to compare a PDO object with itself, it's supposed to be equal, but the '==' operator doesn't seems to work properly. Reproduce code: --------------- <? $oPDO = new PDO('sqlite::memory:'); var_dump($oPDO == $oPDO); ?> Expected result: ---------------- bool(true) Actual result: -------------- bool(false) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43448&edit=1

« previous php.bugs (#131467) next »