mirror of
https://github.com/php/php-src.git
synced 2024-10-01 14:56:10 +00:00
24 lines
554 B
Plaintext
24 lines
554 B
Plaintext
|
--TEST--
|
||
|
$_SERVER variable
|
||
|
--INI--
|
||
|
allow_url_fopen = TRUE
|
||
|
--SKIPIF--
|
||
|
<?php
|
||
|
include "skipif.inc";
|
||
|
if (substr(PHP_OS, 0, 3) == 'WIN') {
|
||
|
die ("skip not for Windows");
|
||
|
}
|
||
|
?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
include "php_cli_server.inc";
|
||
|
$php = getenv('TEST_PHP_EXECUTABLE');
|
||
|
$handle = php_cli_server_start($php, 'var_dump($_SERVER["DOCUMENT_ROOT"], $_SERVER["SERVER_SOFTWARE"]);');
|
||
|
var_dump(file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS));
|
||
|
php_cli_server_shutdown($handle);
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
string(%d) "string(%d) "%s/tests"
|
||
|
string(%d) "PHP %s Development Server"
|
||
|
"
|