PHP  
 PHP_5_5
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_003.phpt ('Bug #55726 (Changing the working directory makes router script inaccessible)')

Script

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

Expected

string(4) "okey"
string(4) "okey"

Output

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

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

Diff

001+ Warning: file_get_contents(http://localhost:8964): failed to open stream: Connection refused in /var/php_gcov/PHP_5_5/sapi/cli/tests/php_cli_server_003.php on line 4
002+ bool(false)
001- string(4) "okey"
002- string(4) "okey"
003+ 
004+ Warning: file_get_contents(http://localhost:8964): failed to open stream: Connection refused in /var/php_gcov/PHP_5_5/sapi/cli/tests/php_cli_server_003.php on line 5
005+ bool(false)

 

Generated at Sun, 26 Oct 2014 06:24:57 +0000 (5 days ago)

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