File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug63976.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:32:17 2013 UTC (11 years, 9 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

--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"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>