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_001.phpt ('basic function')

Script

1: <?php
2:
include "php_cli_server.inc";
3:
php_cli_server_start();
4:
var_dump(file_get_contents("http://" PHP_CLI_SERVER_ADDRESS));
5:
?>
6:

Expected

string(11) "Hello world"

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_001.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_001.php on line 4
001- string(11) "Hello world"
002+ bool(false)

 

Generated at Thu, 20 Nov 2014 12:38:44 +0000 (6 days ago)

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