Annotation of embedaddon/php/ext/spl/tests/bug61326.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #61326: ArrayObject comparison
! 3: --FILE--
! 4: <?php
! 5: $aobj1 = new ArrayObject(array(0));
! 6: $aobj2 = new ArrayObject(array(1));
! 7: var_dump($aobj1 == $aobj2);
! 8:
! 9: $aobj3 = new ArrayObject(array(0));
! 10: var_dump($aobj1 == $aobj3);
! 11:
! 12: $aobj3->foo = 'bar';
! 13: var_dump($aobj1 == $aobj3);
! 14: --EXPECT--
! 15: bool(false)
! 16: bool(true)
! 17: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>