1--TEST--
2passing first parameter of __call() by ref
3--FILE--
4<?php
5
6class test {
7    function __call(&$name, $args) { }
8}
9
10$t = new test;
11$func = "foo";
12
13$t->$func();
14
15echo "Done\n";
16?>
17--EXPECTF--
18Fatal error: Method test::__call() cannot take arguments by reference in %s on line %d
19