Annotation of embedaddon/php/Zend/tests/bug63976.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #63976 (Parent class incorrectly using child constant in class property)
3: --FILE--
4: <?php
5: if (1) {
6: class Foo {
7: const TABLE = "foo";
8: public $table = self::TABLE;
9: }
10: }
11: if (1) {
12: class Bar extends Foo {
13: const TABLE = "bar";
14: }
15: }
16: $bar = new Bar();
17: var_dump($bar->table);
18: ?>
19: --EXPECT--
20: string(3) "foo"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>