Skip to content

Allow running Jalno using PHP's builtin webserver (php -s command) - #17

Merged
yeganemehr merged 1 commit into
jalno:masterfrom
hosni-labs:master
Oct 7, 2026
Merged

yeganemehr merged 1 commit into
jalno:masterfrom
hosni-labs:master

Conversation

@hosni

@hosni hosni commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Jalno treated any SAPI whose name starts with cli as CLI. PHP’s built-in server reports cli-server, so those requests were classified as CLI instead of a web SAPI. cli-server is now treated as CGI; a real cli SAPI is unchanged.

php_sapi_name() can return values such as apache, apache2handler, cgi (until PHP 5.3), cgi-fcgi, cli, cli-server, embed, fpm-fcgi, litespeed, and phpdbg (return values).

The router always needs a scheme. When neither existing headers nor server variables provide one, it now falls back to http.

@yeganemehr
yeganemehr merged commit 5e9fef1 into jalno:master Oct 7, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants