Possible null pointer dereference in php_http_url_mod() fixed.
[m6w6/ext-http] / tests / message006.phpt
1 --TEST--
2 message var_dump with inherited property with increased access level
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 ?>
7 --FILE--
8 <?php
9 echo "Test\n";
10
11 class c extends http\Message {
12 public $headers;
13 }
14
15 $m = new c;
16 $m->headers["foo"] = "bar";
17 var_dump($m);
18
19 ?>
20 DONE
21 --EXPECTF--
22 Test
23 object(c)#%d (9) {
24 ["headers"]=>
25 array(1) {
26 ["foo"]=>
27 string(3) "bar"
28 }
29 ["type":protected]=>
30 int(0)
31 ["body":protected]=>
32 NULL
33 ["requestMethod":protected]=>
34 string(0) ""
35 ["requestUrl":protected]=>
36 string(0) ""
37 ["responseStatus":protected]=>
38 string(0) ""
39 ["responseCode":protected]=>
40 int(0)
41 ["httpVersion":protected]=>
42 string(3) "1.1"
43 ["parentMessage":protected]=>
44 NULL
45 }
46 DONE