mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +00:00
14 lines
236 B
Plaintext
14 lines
236 B
Plaintext
|
--TEST--
|
||
|
SPL FixedArray offsetExists behaviour on a negative index
|
||
|
--CREDITS--
|
||
|
PHPNW TestFest 2009 - Ben Longden
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$array = new SplFixedArray(5);
|
||
|
if($array->offsetExists(-10) === false) {
|
||
|
echo 'PASS';
|
||
|
}
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
PASS
|