#43448 [Opn->Csd]: PDO Object comparison failure
| From: | desarrollo at c17 dot net | Date: | Sat, 25 Apr 2009 21:10:24 +0000 |
| Subject: | #43448 [Opn->Csd]: PDO Object comparison failure | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-136320@lists.php.net to get a copy of this message | ||
ID: 43448
User updated by: desarrollo at c17 dot net
Reported By: desarrollo at c17 dot net
-Status: Open
+Status: Closed
Bug Type: PDO related
Operating System: Ubuntu Linux 9.04
PHP Version: 5.2.6
New Comment:
I forgot to close the bug!
Thanks for your work!
Previous Comments:
------------------------------------------------------------------------
[2009-04-25 16:01:54] desarrollo at c17 dot net
It works now
------------------------------------------------------------------------
[2009-04-25 14:52:35] jani@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2008-11-29 02:32:41] olafurw at gmail dot com
This might be fixed already. I got the expected result on this version
of PHP - Version 5.3.0alpha3-dev - Linux
------------------------------------------------------------------------
[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