summaryrefslogtreecommitdiff
path: root/tests/classes/constants_error_004.phpt
blob: b7f668909bf11fe2e3b6267a76f4fd24f67c993f (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