PHP  
 PHP_5_6
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

Warning: file_get_contents(http://localhost:8964): failed to open stream: Connection refused in /var/php_gcov/PHP_5_6/sapi/cli/tests/php_cli_server_002.php on line 4
bool(false)

Diff

001+ Warning: file_get_contents(http://localhost:8964): failed to open stream: Connection refused in /var/php_gcov/PHP_5_6/sapi/cli/tests/php_cli_server_002.php on line 4
002+ bool(false)
001- string(%d) "string(%d) "%stests"
002- string(%d) "PHP %s Development Server"
003- string(%d) "localhost"
004- string(%d) "8964"
005- "

 

Generated at Sat, 19 Jul 2014 23:25:50 +0000 (13 days ago)

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