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

Undefined index when running programmatically #35

Closed
chrisdeeming opened this issue Oct 3, 2021 · 1 comment
Closed

Undefined index when running programmatically #35

chrisdeeming opened this issue Oct 3, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@chrisdeeming
Copy link

In Scanner::arguments a new Argv object is instantiated and later Argv::parse is called.

if (empty($args)) {
	$args = array_slice($_SERVER['argv'], 1); // First argument removed (php [index.php.php] [<path>] [<functions>])
}

Accessing $_SERVER['argv'] when not running via the CLI will cause an undefined index error.

@marcocesarato marcocesarato added the bug Something isn't working label Oct 3, 2021
@marcocesarato
Copy link
Owner

Hi, fixed and will be available in the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants