summaryrefslogtreecommitdiff
path: root/tests/classes/constants_error_004.phpt
blob: 27777f8772ac8cc282da4066ef41d9ee56a1c913 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Class constant whose initial value references a non-existent class
--FILE--
<?php
  class C
  {
      const c1 = D::hello;
  }
  
  $a = new C();
?>
--EXPECTF--
Fatal error: Uncaught Error: Class 'D' not found in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d