add CURLINFO_RETRY_AFTER
[m6w6/ext-http] / tests / bug71719.phpt
1 --TEST--
2 Bug #71719 (Buffer overflow in HTTP url parsing functions)
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 ?>
7 --INI--
8 zend.exception_ignore_args=off
9 --FILE--
10 <?php
11
12 echo "Test\n";
13 try {
14 echo new http\Message(file_get_contents(__DIR__."/data/bug71719.bin"), false);
15 } catch (Exception $e) {
16 echo $e;
17 }
18 ?>
19
20 ===DONE===
21 --EXPECTF--
22 Test
23 %r(exception ')?%rhttp\Exception\BadMessageException%r(' with message '|: )%rhttp\Message::__construct(): Could not parse HTTP protocol version 'HTTP/%s.0'%r'?%r in %sbug71719.php:5
24 Stack trace:
25 #0 %sbug71719.php(5): http\Message->__construct('%r(\?\?|\\x80\\xAC)%rTd 5 HTTP/1.1...', false)
26 #1 {main}
27 ===DONE===