php-src/Zend/tests/magic_by_ref_009.phpt
2008-06-25 22:51:53 +00:00

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