1--TEST--
2Attempt to pass a constant by reference
3--FILE--
4<?php
5
6function f(&$arg1)
7{
8    var_dump($arg1++);
9}
10
11f(2);
12
13?>
14--EXPECTF--
15Fatal error: Uncaught Error: f(): Argument #1 ($arg1) cannot be passed by reference in %s:%d
16Stack trace:
17#0 {main}
18  thrown in %s on line %d
19