Minimal JSON API endpoint for phpc lint / ExamplesCompileTest (#270).
./phpc lint examples/004-ApiJson/example.php
./phpc run examples/004-ApiJson/example.php
./phpc serve 127.0.0.1:8080 examples/004-ApiJson
curl -s -D - 'http://127.0.0.1:8080/example.php'
Expected body:
{"ok":true,"service":"php-compiler"}
| Feature | Issue | Status |
|---|---|---|
json_encode() |
#61 | VM + JIT |
http_response_code() |
#252 | done |
header() |
#55 / stdlib | done |