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

Unable to connect to server

Diff

001+ Unable to connect to server
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
003- 
004- Warning: file_get_contents(http://localhost:8964): failed to open stream: HTTP request failed! HTTP/1.0 501 Not Implemented
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 Wed, 20 Sep 2017 13:49:37 +0000 (2 days ago)

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