Created
March 26, 2012 18:57
-
-
Save juzna/2208688 to your computer and use it in GitHub Desktop.
PHP compare bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$a = new ArrayObject(array( | |
'single' => "ahoj", | |
'double' => "lamo", | |
)); | |
$b = new ArrayObject(array( | |
'single' => "zdar", | |
'double' => "vole", | |
)); | |
var_dump($a == $b); // true in PHP < 5.4.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment