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