xref: /PHP-5.6/Zend/tests/bug63976.phpt (revision 7b0993bf)
1--TEST--
2Bug #63976 (Parent class incorrectly using child constant in class property)
3--FILE--
4<?php
5if (1) {
6  class Foo {
7    const TABLE = "foo";
8    public $table = self::TABLE;
9  }
10}
11if (1) {
12  class Bar extends Foo {
13    const TABLE = "bar";
14  }
15}
16$bar = new Bar();
17var_dump($bar->table);
18?>
19--EXPECT--
20string(3) "foo"
21