1--TEST-- 2Observer: Basic fiber switching 3--EXTENSIONS-- 4zend_test 5--INI-- 6zend_test.observer.enabled=1 7zend_test.observer.show_output=1 8zend_test.observer.fiber_init=1 9zend_test.observer.fiber_switch=1 10zend_test.observer.fiber_destroy=1 11--FILE-- 12<?php 13 14$fiber = new Fiber(function (): void { 15 Fiber::suspend(); 16}); 17 18$fiber->start(); 19$fiber->resume(); 20 21?> 22--EXPECTF-- 23<!-- init '%sobserver_fiber_01.php' --> 24<!-- alloc: %s --> 25<!-- switching from fiber %s to %s --> 26<init '%s'> 27<!-- init {closure}() --> 28<!-- switching from fiber %s to %s --> 29<suspend '%s'> 30<!-- switching from fiber %s to %s --> 31<resume '%s'> 32<!-- switching from fiber %s to %s --> 33<returned '%s'> 34<!-- destroy: %s --> 35