1--TEST--
2Basic class support - defining and reading a class constant.
3--FILE--
4<?php
5  class aclass
6  {
7      const myConst = "hello";
8  }
9
10  echo "\nRead class constant.\n";
11  var_dump(aclass::myConst);
12
13  echo "\nFail to read class constant from instance.\n";
14  $myInstance = new aclass();
15  var_dump($myInstance->myConst);
16
17  echo "\nClass constant not visible in object var_dump.\n";
18  var_dump($myInstance)
19?>
20--EXPECTF--
21Read class constant.
22string(5) "hello"
23
24Fail to read class constant from instance.
25
26Warning: Undefined property: aclass::$myConst in %s on line %d
27NULL
28
29Class constant not visible in object var_dump.
30object(aclass)#%d (0) {
31}
32