mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
17 lines
267 B
PHP
17 lines
267 B
PHP
--TEST--
|
|
passing second parameter of __set() by ref
|
|
--FILE--
|
|
<?php
|
|
|
|
class test {
|
|
function __set($name, &$val) { }
|
|
}
|
|
|
|
$t = new test;
|
|
$t->prop = 1;
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Method test::__set() cannot take arguments by reference in %s on line %d
|