mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
17 lines
283 B
Plaintext
17 lines
283 B
Plaintext
|
--TEST--
|
||
|
Bug #28822: ArrayObject::offsetExists() works inverted
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
$array = new ArrayObject();
|
||
|
$array->offsetSet('key', 'value');
|
||
|
var_dump($array->offsetExists('key'));
|
||
|
var_dump($array->offsetExists('nokey'));
|
||
|
|
||
|
?>
|
||
|
===DONE===
|
||
|
--EXPECT--
|
||
|
bool(true)
|
||
|
bool(false)
|
||
|
===DONE===
|