xref: /PHP-7.3/Zend/tests/magic_by_ref_004.phpt (revision 782352c5)
1--TEST--
2passing parameter of __unset() by ref
3--FILE--
4<?php
5
6class test {
7    function __unset(&$name) { }
8}
9
10$t = new test;
11$name = "prop";
12
13var_dump($t->$name);
14
15echo "Done\n";
16?>
17--EXPECTF--
18Fatal error: Method test::__unset() cannot take arguments by reference in %s on line %d
19