xref: /PHP-5.3/Zend/tests/objects_029.phpt (revision e35c4579)
1--TEST--
2Trying to access undeclared static 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		static::$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: foo::$f in %s on line %d
27