4 <?php include "skipif.inc"; ?>
6 zend.exception_ignore_args=off
11 var_dump(new http\Message("GET HTTP/1.1"));
12 } catch (Exception $e) {
16 var_dump(new http\Message("GET HTTP/1.123"));
17 } catch (Exception $e) {
21 var_dump(new http\Message("GETHTTP/1.1"));
22 } catch (Exception $e) {
25 var_dump(new http\Message("GET / HTTP/1.1"));
29 http\Exception\BadMessageException: http\Message::__construct(): Failed to parse headers: unexpected character '\040' at pos 3 of 'GET HTTP/1.1' in %s
31 #0 %s: http\Message->__construct('GET HTTP/1.1')
33 http\Exception\BadMessageException: http\Message::__construct(): Failed to parse headers: unexpected character '\040' at pos 3 of 'GET HTTP/1.123' in %s
35 #0 %s: http\Message->__construct('GET HTTP/1.123')
37 http\Exception\BadMessageException: http\Message::__construct(): Failed to parse headers: unexpected character '\057' at pos 7 of 'GETHTTP/1.1' %s
39 #0 %s: http\Message->__construct('GETHTTP/1.1')
41 object(http\Message)#%d (9) {
46 ["requestMethod":protected]=>
48 ["requestUrl":protected]=>
50 ["responseStatus":protected]=>
52 ["responseCode":protected]=>
54 ["httpVersion":protected]=>
56 ["headers":protected]=>
59 ["parentMessage":protected]=>