Skip to content

[Bug]: Herd does not support $_SERVER['PATH_INFO] #1454

@francescom

Description

@francescom

Platform

Any

Operating system version

Any

System architecture

Any

Herd Version

Any

PHP Version

No response

Bug description

Any page that uses $_SERVER['PATH_INFO] does not work under Herd because the startup scripts looks for the wrong file name and any path info added after the script marks the page as a Page Not Found

I would expect the PATH_INFO content to be added to the path of the launched page.

Steps to reproduce

Create a test page test.php

<?php

echo $_SERVER['PATH_INFO'];

And launch it as test.php/PATH/INFO/GOES/HERE?param=123

Expected result: PATH/INFO/GOES/HERE printed to page, this is what is printed on any web server (some don't pass the PATH_INFO but it can be obtained).

Obtained result: blank page / page not found. Herd / Valet incorrectly looks for existance of the file test.php/PATH/INFO/GOES/HERE

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions