This is the bare minimum required to make fibers work within the go
  runtime.
This commit is contained in:
Joe Watkins
2022-11-10 06:44:52 +01:00
committed by Kévin Dunglas
parent a6572225f6
commit 799a9d5cb1
2 changed files with 26 additions and 0 deletions

9
testdata/fiber-basic.php vendored Normal file
View File

@@ -0,0 +1,9 @@
<?php
require_once __DIR__.'/_executor.php';
return function() {
$fiber = new Fiber(function() {
echo 'Fiber '.($_GET['i'] ?? '');
});
$fiber->start();
};