PHP  
 PHP_5_4
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(): Couldn't connect to server in /var/php_gcov/PHP_5_4/sapi/cli/tests/php_cli_server_003.php on line 4

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

Warning: file_get_contents(): Couldn't connect to server in /var/php_gcov/PHP_5_4/sapi/cli/tests/php_cli_server_003.php on line 5

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

Diff

001+ Warning: file_get_contents(): Couldn't connect to server in /var/php_gcov/PHP_5_4/sapi/cli/tests/php_cli_server_003.php on line 4
002+ 
001- string(4) "okey"
002- string(4) "okey"
003+ Warning: file_get_contents(http://localhost:8964): failed to open stream: operation failed in /var/php_gcov/PHP_5_4/sapi/cli/tests/php_cli_server_003.php on line 4
004+ bool(false)
005+ 
006+ Warning: file_get_contents(): Couldn't connect to server in /var/php_gcov/PHP_5_4/sapi/cli/tests/php_cli_server_003.php on line 5
007+ 
008+ Warning: file_get_contents(http://localhost:8964): failed to open stream: operation failed in /var/php_gcov/PHP_5_4/sapi/cli/tests/php_cli_server_003.php on line 5
009+ bool(false)

 

Generated at Mon, 29 Sep 2014 14:26:37 +0000 (2 days ago)

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