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

Missing $_SERVER variables #16

Open
sk- opened this issue Jul 28, 2014 · 2 comments
Open

Missing $_SERVER variables #16

sk- opened this issue Jul 28, 2014 · 2 comments

Comments

@sk-
Copy link
Contributor

sk- commented Jul 28, 2014

When running hippy from command line (not tested on server) many $_SERVER variables are missing.

Below are the missing variables when compared to PHP 5.4.4

[PHP_SELF] => tests/server.php
[SCRIPT_NAME] => tests/server.php
[SCRIPT_FILENAME] => tests/server.php
[PATH_TRANSLATED] => tests/server.php
[DOCUMENT_ROOT] => 
[REQUEST_TIME_FLOAT] => 1406537711.5441
[REQUEST_TIME] => 1406537711
[argv] => Array
    (
        [0] => tests/server.php
    )
[argc] => 1

Many projects, including PhpUnit and samples from "The Computer Language Benchmarks Game", rely at least on $_SERVER['argv'].

@xando
Copy link
Member

xando commented Jul 29, 2014

@sk-

Thanks for the report we will try to address the issue.

@rlamy
Copy link
Contributor

rlamy commented Jul 31, 2014

Added $_SERVER['argc'] and $_SERVER['argv'] in ba9ebde.

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

3 participants