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