feat: add experimental CLI support (#239)

* feat: add CLI support

* updated

* debug

* fix tests

* Caddy php-cli command

* use thread

* $_SERVER and input streams support

* Update frankenphp.c

Co-authored-by: Francis Lavoie <lavofr@gmail.com>

---------

Co-authored-by: Francis Lavoie <lavofr@gmail.com>
This commit is contained in:
Kévin Dunglas
2023-10-09 14:38:15 +02:00
committed by GitHub
parent af3ed6e26d
commit c615fe0087
10 changed files with 282 additions and 39 deletions

6
testdata/command.php vendored Normal file
View File

@@ -0,0 +1,6 @@
<?php
var_dump($argv, $_SERVER);
echo "From the CLI\n";
exit(3);