summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug61326.phpt
blob: 85b577940a0f6fb275098614f80d805598341b3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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)