PHP  
 PHP_7_2
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for sapi/cli/tests/php_cli_server_002.phpt ('$_SERVER variable')

Script

1: <?php
2:
include "php_cli_server.inc";
3:
php_cli_server_start('var_dump($_SERVER["DOCUMENT_ROOT"], $_SERVER["SERVER_SOFTWARE"], $_SERVER["SERVER_NAME"], $_SERVER["SERVER_PORT"]);');
4:
var_dump(file_get_contents("http://" PHP_CLI_SERVER_ADDRESS));
5:
?>
6:

Expected

string(%d) "string(%d) "%stests"
string(%d) "PHP %s Development Server"
string(%d) "localhost"
string(%d) "8964"
"

Output

Unable to connect to server

Diff

001+ Unable to connect to server
001- string(%d) "string(%d) "%stests"
002- string(%d) "PHP %s Development Server"
003- string(%d) "localhost"
004- string(%d) "8964"
005- "

 

Generated at Tue, 21 Nov 2017 01:17:01 +0000 (5 hours ago)

Copyright © 2005-2017 The PHP Group
All rights reserved.