xref: /PHP-5.6/Zend/tests/objects_030.phpt (revision e35c4579)
1--TEST--
2Trying to access undeclared parent property
3--FILE--
4<?php
5
6class bar {
7	public function __set($a, $b) {
8		print "hello\n";
9	}
10}
11
12class foo extends bar {
13	public function __construct() {
14		parent::$f = 1;
15	}
16	public function __set($a, $b) {
17		print "foo\n";
18	}
19}
20
21
22new foo;
23
24?>
25--EXPECTF--
26Fatal error: Access to undeclared static property: bar::$f in %s on line %d
27