1--TEST-- 2Observer: Nested fibers with both unfinished 3--EXTENSIONS-- 4zend_test 5--INI-- 6zend_test.observer.enabled=1 7zend_test.observer.show_output=1 8zend_test.observer.fiber_switch=1 9--FILE-- 10<?php 11 12$fiber = new Fiber(function (): void { 13 Fiber::suspend(); 14 15 $fiber = new Fiber(function (): void { 16 Fiber::suspend(); 17 }); 18 19 $fiber->start(); 20 21 Fiber::suspend(); 22}); 23 24$fiber->start(); 25$fiber->resume(); 26 27?> 28--EXPECTF-- 29<!-- init '%sobserver_fiber_05.php' --> 30<!-- switching from fiber %s to %s --> 31<init '%s'> 32<!-- init {closure}() --> 33<!-- switching from fiber %s to %s --> 34<suspend '%s'> 35<!-- switching from fiber %s to %s --> 36<resume '%s'> 37<!-- switching from fiber %s to %s --> 38<init '%s'> 39<!-- init {closure}() --> 40<!-- switching from fiber %s to %s --> 41<suspend '%s'> 42<!-- switching from fiber %s to %s --> 43<suspend '%s'> 44<!-- switching from fiber %s to %s --> 45<destroying '%s'> 46<!-- switching from fiber %s to %s --> 47<destroying '%s'> 48<!-- switching from fiber %s to %s --> 49<destroyed '%s'> 50<!-- switching from fiber %s to %s --> 51<destroyed '%s'> 52