summaryrefslogtreecommitdiff
path: root/tests/classes/constants_error_007.phpt
blob: 54b32e4ab2ce997a61da31a4ed804a45c9a617bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Basic class support - attempting to create a reference to a class constant
--FILE--
<?php
  class aclass
  {
      const myConst = "hello";
  }

  echo "\nAttempting to create a reference to a class constant - should be parse error.\n";
  $a = &aclass::myConst;
?>
--EXPECTF--

Parse error: %s in %s on line %d