mirror of
https://github.com/php/php-src.git
synced 2024-10-19 23:44:13 +00:00
18 lines
393 B
PHP
18 lines
393 B
PHP
--TEST--
|
|
SplDoublyLinkedList::offsetGet() with 1st parameter passed as string.
|
|
--CREDITS--
|
|
PHPNW Test Fest 2009 - Jordan Hatch
|
|
--FILE--
|
|
<?php
|
|
|
|
$array = new SplDoublyLinkedList( );
|
|
|
|
$get = $array->offsetGet( 'fail' );
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught exception 'OutOfRangeException' with message 'Offset invalid or out of range' in %s
|
|
Stack trace:
|
|
#0 %s
|
|
#1 {main}
|
|
thrown in %s on line %d
|