7 checkcls('HttpMessage');
11 class Message extends HttpMessage
13 var $var_property = 'var';
14 public $public_property = 'public';
15 protected $protected_property = 'protected';
16 private $private_property = 'private';
18 public function test()
20 var_dump($this->var_property);
21 var_dump($this->public_property);
22 var_dump($this->protected_property);
23 var_dump($this->private_property);
24 var_dump($this->non_ex_property);
25 $this->var_property.='_property';
26 $this->public_property.='_property';
27 $this->protected_property.='_property';
28 $this->private_property.='_property';
29 $this->non_ex_property = 'non_ex';
30 var_dump($this->var_property);
31 var_dump($this->public_property);
32 var_dump($this->protected_property);
33 var_dump($this->private_property);
34 var_dump($this->non_ex_property);
36 print_r($this->headers);
37 $this->headers['Foo'] = 'Bar';
41 error_reporting(E_ALL|E_STRICT);
55 Notice: Undefined property: Message::$non_ex_property in %s
57 string(12) "var_property"
58 string(15) "public_property"
59 string(18) "protected_property"
60 string(16) "private_property"
65 %aFatal error%sCannot access HttpMessage properties by reference or array key/index in%s