1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 08:42:29 +01:00
Files
archived-php-src/ext/spl/tests/SplPriorityQueue_setExtractFlags_zero.phpt
Gabriel Caruso 4aabfe911e Revert "Update versions for PHP 8.0.21"
This reverts commit 6eedacdf15.
2022-07-06 12:06:48 +02:00

16 lines
357 B
PHP

--TEST--
Setting SplPriorityQueue extract flags to zero generates an exception
--FILE--
<?php
$queue = new SplPriorityQueue();
$queue->setExtractFlags(0);
?>
--EXPECTF--
Fatal error: Uncaught RuntimeException: Must specify at least one extract flag in %s:%d
Stack trace:
#0 %s(%d): SplPriorityQueue->setExtractFlags(0)
#1 {main}
thrown in %s on line %d