xref: /PHP-8.2/Zend/tests/fibers/gh10249.phpt (revision 833b45ac)
1--TEST--
2GH-10249 (Assertion `size >= page_size + 1 * page_size' failed.)
3--FILE--
4<?php
5
6$callback = function () {};
7ini_set("fiber.stack_size", "");
8$fiber = new Fiber($callback);
9try {
10    $fiber->start();
11} catch (Exception $e) {
12    echo $e->getMessage() . "\n";
13}
14
15?>
16--EXPECTF--
17Fiber stack size is too small, it needs to be at least %d bytes
18