1--TEST-- 2Out of Memory from recursive fiber creation 3--INI-- 4memory_limit=2M 5--SKIPIF-- 6<?php 7if (getenv("USE_ZEND_ALLOC") === "0") { 8 die("skip Zend MM disabled"); 9} 10?> 11--FILE-- 12<?php 13 14function create_fiber(): Fiber 15{ 16 $fiber = new Fiber('create_fiber'); 17 $fiber->start(); 18 return $fiber; 19} 20 21$fiber = new Fiber('create_fiber'); 22$fiber->start(); 23 24?> 25--EXPECTF-- 26Fatal error: Allowed memory size of %d bytes exhausted%s(tried to allocate %d bytes) in %sout-of-memory-in-recursive-fiber.php on line %d 27