Possible null pointer dereference in php_http_url_mod() fixed.
[m6w6/ext-http] / tests / message005.phpt
1 --TEST--
2 message cloning
3 --SKIPIF--
4 <?php include "skipif.inc";
5 --FILE--
6 <?php
7
8 $msg = new http\Message("
9 HTTP/1.1 201 Created
10 HTTP/1.1 200 Ok
11 String: foobar
12 ");
13
14 $cpy = clone $msg;
15
16 $cpy->setType(http\Message::TYPE_REQUEST);
17 $cpy->setHeaders(array("Numbers" => array(1,2,3,4.5)));
18
19 echo $msg;
20 echo "\n===\n";
21 echo $cpy;
22
23 ?>
24 DONE
25 --EXPECTF--
26 HTTP/1.1 200 Ok
27 String: foobar
28
29 ===
30 UNKNOWN / HTTP/1.1
31 Numbers: 1, 2, 3, 4.5
32 DONE