-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not read from argv on non-CLI SAPIs
- Loading branch information
Showing
4 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--TEST-- | ||
Test HttpKernelInterface with register_argc_argv=1 | ||
--INI-- | ||
display_errors=1 | ||
register_argc_argv=1 | ||
--FILE-- | ||
<?php | ||
|
||
// emulating PHP behavior with register_argc_argv=1 | ||
$_GET['-e_test'] = ''; | ||
$_SERVER['argc'] = 1; | ||
$_SERVER['argv'] = [' ', '-e', 'test']; | ||
|
||
require $_SERVER['SCRIPT_FILENAME'] = __DIR__.'/kernel.php'; | ||
|
||
?> | ||
--EXPECTF-- | ||
OK Kernel (env=dev) foo_bar |