1--TEST-- 2Bug #69655 (php -S changes MKCALENDAR request method to MKCOL) 3--INI-- 4allow_url_fopen=1 5--SKIPIF-- 6<?php 7include "skipif.inc"; 8?> 9--FILE-- 10<?php 11include "php_cli_server.inc"; 12php_cli_server_start(); 13foreach (['MKCO', 'MKCOLL', 'M'] as $method) { 14 $context = stream_context_create(['http' => ['method' => $method]]); 15 // the following is supposed to emit a warning for unsupported methods 16 file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS, false, $context); 17} 18?> 19--EXPECTF-- 20Warning: file_get_contents(http://localhost:8964): failed to open stream: HTTP request failed! HTTP/1.0 501 Not Implemented 21 in %s on line %d 22 23Warning: file_get_contents(http://localhost:8964): failed to open stream: HTTP request failed! HTTP/1.0 501 Not Implemented 24 in %s on line %d 25 26Warning: file_get_contents(http://localhost:8964): failed to open stream: HTTP request failed! HTTP/1.0 501 Not Implemented 27 in %s on line %d 28