Annotation of embedaddon/php/Zend/tests/objects_029.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Trying to access undeclared static property
3: --FILE--
4: <?php
5:
6: class bar {
7: public function __set($a, $b) {
8: print "hello\n";
9: }
10: }
11:
12: class 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:
22: new foo;
23:
24: ?>
25: --EXPECTF--
26: Fatal error: Access to undeclared static property: foo::$f in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>