mirror of
https://github.com/dunglas/frankenphp.git
synced 2025-12-24 13:38:11 +08:00
Fix #46
This is the bare minimum required to make fibers work within the go runtime.
This commit is contained in:
committed by
Kévin Dunglas
parent
a6572225f6
commit
799a9d5cb1
9
testdata/fiber-basic.php
vendored
Normal file
9
testdata/fiber-basic.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
require_once __DIR__.'/_executor.php';
|
||||
|
||||
return function() {
|
||||
$fiber = new Fiber(function() {
|
||||
echo 'Fiber '.($_GET['i'] ?? '');
|
||||
});
|
||||
$fiber->start();
|
||||
};
|
||||
Reference in New Issue
Block a user