1--TEST-- 2Bug #65066 (Cli server not responsive when responding with 422 http status code): 422 status code 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('http_response_code(422);'); 13 14$host = PHP_CLI_SERVER_HOSTNAME; 15$fp = php_cli_server_connect(); 16 17if(fwrite($fp, <<<HEADER 18GET / HTTP/1.1 19Host: {$host} 20 21 22HEADER 23)) { 24 while (!feof($fp)) { 25 echo fgets($fp); 26 } 27} 28?> 29--EXPECTF-- 30HTTP/1.1 422 Unknown Status Code 31Host: %s 32Date: %s 33Connection: close 34X-Powered-By: PHP/%s 35Content-type: text/html; charset=UTF-8 36