mirror of
https://github.com/php/php-src.git
synced 2024-12-04 23:34:25 +08:00
18 lines
320 B
PHP
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)
|