mirror of
https://github.com/php/php-src.git
synced 2024-09-29 05:46:06 +00:00
19 lines
304 B
Plaintext
19 lines
304 B
Plaintext
|
--TEST--
|
||
|
passing first parameter of __callstatic() by ref
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
class test {
|
||
|
function __callstatic(&$name, $args) { }
|
||
|
}
|
||
|
|
||
|
$t = new test;
|
||
|
$func = "foo";
|
||
|
|
||
|
$t->$func();
|
||
|
|
||
|
echo "Done\n";
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Fatal error: Method test::__callstatic() cannot take arguments by reference in %s on line %d
|