php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43448 PDO Object comparison failure
Submitted: 2007-11-29 12:43 UTC Modified: 2009-04-25 21:10 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: desarrollo at c17 dot net Assigned:
Status: Closed Package: PDO related
PHP Version: 5.2.6 OS: Ubuntu Linux 9.04
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: desarrollo at c17 dot net
New email:
PHP Version: OS:

 

 [2007-11-29 12:43 UTC] 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)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-29 02:32 UTC] 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
 [2009-04-25 14:52 UTC] 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/


 [2009-04-25 16:01 UTC] desarrollo at c17 dot net
It works now
 [2009-04-25 21:10 UTC] desarrollo at c17 dot net
I forgot to close the bug!

Thanks for your work!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Sep 27 22:01:26 2024 UTC