1--TEST--
2Basic class support - attempting to pass a class constant by reference.
3--FILE--
4<?php
5  class aclass
6  {
7      const myConst = "hello";
8  }
9
10  function f(&$a)
11  {
12      $a = "changed";
13  }
14
15  f(aclass::myConst);
16  var_dump(aclass::myConst);
17?>
18--EXPECTF--
19Fatal error: Uncaught Error: f(): Argument #1 ($a) cannot be passed by reference in %s:%d
20Stack trace:
21#0 {main}
22  thrown in %s on line %d
23