--TEST-- GH-12102: Incorrect "Cannot use temporary expression in write context" error for BP_VAR_FUNC_ARG --FILE-- getMessage(), "\n"; } } /* Intentionally declared after test() to avoid compile-time checking of ref args. */ const C = ['foo']; function byVal($arg) { var_dump($arg); } function byRef(&$arg) { var_dump($arg); } test('y'); ?> --EXPECT-- string(3) "foo" Cannot use temporary expression in write context