mirror of
https://github.com/php/php-src.git
synced 2025-01-12 05:54:13 +08:00
20 lines
389 B
Plaintext
20 lines
389 B
Plaintext
|
--TEST--
|
||
|
SplQueue setIteratorMode to LIFO produces fail condition in try/catch
|
||
|
--CREDITS--
|
||
|
PHPNW Test Fest 2009 - Jeremy Coates jeremy@phpnw.org.uk
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
try {
|
||
|
|
||
|
$dll = new SplQueue();
|
||
|
$dll->setIteratorMode(SplDoublyLinkedList::IT_MODE_LIFO);
|
||
|
|
||
|
} catch (Exception $e) {
|
||
|
echo $e->getMessage();
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
Iterators' LIFO/FIFO modes for SplStack/SplQueue objects are frozen
|