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/bug69655.phpt ('Bug #69655 (php -S changes MKCALENDAR request method to MKCOL)')

Script

1: <?php
2:
include "php_cli_server.inc";
3:
php_cli_server_start();
4: foreach ([
'MKCO''MKCOLL''M'] as $method) {
5:     
$context stream_context_create(['http' => ['method' => $method]]);
6:     
// the following is supposed to emit a warning for unsupported methods
7:     
file_get_contents("http://" PHP_CLI_SERVER_ADDRESSfalse$context);
8: }
9:
?>
10:

Expected

Warning: file_get_contents(http://localhost:8964): failed to open stream: HTTP request failed! HTTP/1.0 501 Not Implemented
 in %s on line %d

Warning: file_get_contents(http://localhost:8964): failed to open stream: HTTP request failed! HTTP/1.0 501 Not Implemented
 in %s on line %d

Warning: file_get_contents(http://localhost:8964): failed to open stream: HTTP request failed! HTTP/1.0 501 Not Implemented
 in %s on line %d

Output

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

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

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

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/bug69655.php on line 7
002+ 
003+ Warning: file_get_contents(http://localhost:8964): failed to open stream: Connection refused in /var/php_gcov/PHP_5_6/sapi/cli/tests/bug69655.php on line 7
001- Warning: file_get_contents(http://localhost:8964): failed to open stream: HTTP request failed! HTTP/1.0 501 Not Implemented
002-  in %s on line %d
004- Warning: file_get_contents(http://localhost:8964): failed to open stream: HTTP request failed! HTTP/1.0 501 Not Implemented
005+ Warning: file_get_contents(http://localhost:8964): failed to open stream: Connection refused in /var/php_gcov/PHP_5_6/sapi/cli/tests/bug69655.php on line 7
005-  in %s on line %d
006- 
007- Warning: file_get_contents(http://localhost:8964): failed to open stream: HTTP request failed! HTTP/1.0 501 Not Implemented
008-  in %s on line %d

 

Generated at Mon, 27 Nov 2017 05:04:32 +0000 (13 days ago)

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