Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

many $_SERVER variable are missing #134

Open
dgvirtual opened this issue Jun 5, 2024 · 1 comment
Open

many $_SERVER variable are missing #134

dgvirtual opened this issue Jun 5, 2024 · 1 comment

Comments

@dgvirtual
Copy link

Describe the bug
On both my windows and linux machines (with slightly different versions of php) the PHP server started with FiveServer does not provide many of the $_SERVER variables. The same variables ARE available when the PHP server is run on Linux machine with:

php -S localhost:8080

On my Linux (ubuntu 22.04LTS) machine: the fiveServer config is:

    "fiveServer.php.executable": "/usr/bin/php",
    "fiveServer.port": 8080,
    "fiveServer.host": "localhost",
    "fiveServer.php.ini": "/etc/php/8.1/cli/php.ini",
    "fiveServer.browser": [
    
    ],

The missing variables are those like:
$_SERVER['HTTP_HOST']
$_SERVER['HTTPS']
$_SERVER['REQUEST_METHOD']
and many more

also variables like $_GET or $_POST are always empty, even if there are corresponding requests by the browser.

@DamChtlv
Copy link

It looked promising but doesn't support advanced PHP apps like WordPress...etc sadly.

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

No branches or pull requests

2 participants