php-src/ext/spl/tests/bug61326.phpt
2012-03-10 17:19:39 +00:00

18 lines
320 B
PHP

--TEST--
Bug #61326: ArrayObject comparison
--FILE--
<?php
$aobj1 = new ArrayObject(array(0));
$aobj2 = new ArrayObject(array(1));
var_dump($aobj1 == $aobj2);
$aobj3 = new ArrayObject(array(0));
var_dump($aobj1 == $aobj3);
$aobj3->foo = 'bar';
var_dump($aobj1 == $aobj3);
--EXPECT--
bool(false)
bool(true)
bool(false)