Files
Marc 2da08d635f fix: set $_SERVER variables: 'SCRIPT_NAME', 'PHP_SELF', and 'PATH_INFO' (#2317)
fixes
https://github.com/php/frankenphp/issues/2274#issuecomment-4142767490
closes https://github.com/php/frankenphp/issues/1133

apache/nginx/caddy pass PHP_SELF as SCRIPT_NAME + PATH_INFO, but our
PATH_INFO wasn't working because our matcher stripped the rest of the
path.

request url: localhost/index.php/en
```
# was non-worker:
SCRIPT_NAME: /index.php
PATH_INFO: 
PHP_SELF: /index.php
REQUEST_URL: /en

# was fastcgi:
SCRIPT_NAME: /index.php
PATH_INFO:  /en
PHP_SELF: /index.php/en
REQUEST_URL: /en

# was php_server worker
SCRIPT_NAME:
PATH_INFO:
PHP_SELF: /en
REQUEST_URL: /en

# now is always:
SCRIPT_NAME: /index.php
PATH_INFO: /en
PHP_SELF: /index.php/en
REQUEST_URL: /en
```

---------

Signed-off-by: Marc <m@pyc.ac>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-20 17:42:04 +07:00

20 lines
359 B
Plaintext

/caddy/frankenphp/Build
/caddy/frankenphp/Caddyfile.test
/caddy/frankenphp/frankenphp
/caddy/frankenphp/frankenphp.exe
/caddy/frankenphp/public
/dist
/github_conf
/internal/testserver/testserver
/internal/testcli/testcli
/package/etc/php.ini
/super-linter-output
/vcpkg_installed/
.DS_Store
.idea/
.vscode/
__debug_bin
frankenphp.test
*.log
compile_flags.txt