This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # syntax=dhi.io/build:2-alpine3.23 | |
| name: FrankenPHP | |
| image: ghcr.io/kenshodigital/frankenphp | |
| variant: runtime | |
| tags: | |
| - static-php8.5-alpine | |
| - static-php8.5-alpine3.23 | |
| platforms: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Some extension. | |
| */ | |
| function delegate(array $context) | |
| { | |
| if (!isset($context['section_ids'])) { | |
| return; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| final class Worker | |
| { | |
| private $id; | |
| private $handle; | |
| private $mutex; | |
| private $condition; | |
| private $loop; | |
| private $callables; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| final class Runnable | |
| { | |
| private $callables; | |
| public function __construct(callable ...$callables) | |
| { | |
| $this->callables = $callables; | |
| } |