1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/Zend/tests/fibers/negative_stack_size.phpt

17 lines
351 B
PHP

--TEST--
fiber.stack_size must be a positive number
--FILE--
<?php
ini_set("fiber.stack_size","-1");
$fiber = new Fiber(function() {});
try {
$fiber->start();
} catch (Throwable $e) {
echo "Exception: " . $e->getMessage()."\n";
}
?>
DONE
--EXPECTF--
Warning: fiber.stack_size must be a positive number in %snegative_stack_size.php on line 2
DONE