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