Function
ensure_loaded
Ensure the phasync extension is loaded, re-executing this CLI process with -d extension=<matching .so> if it is not.
Description#
function ensure_loaded(
?string $soPath = null
): voidParameters#
- $soPath ?string = null
- Explicit path to the .so to load. When null, the path is taken from the PHASYNC_EXT_SO environment variable, else the per-ABI file under the package's ext/ directory.
Errors / Exceptions#
| Exception | When |
|---|---|
RuntimeException | If the extension is absent and cannot be loaded (no re-exec primitive, wrong SAPI, no matching binary, or the re-exec ran but the extension still did not load) |