summaryrefslogtreecommitdiff
path: root/Zend/tests/magic_by_ref_003.phpt
blob: c328b422ab0c58601056cd3e563fe22a59a79fae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
passing parameter of __get() by ref
--FILE--
<?php

class test {
    function __get(&$name) { }
}

$t = new test;
$name = "prop";
var_dump($t->$name);

echo "Done\n";
?>
--EXPECTF--
Fatal error: Method test::__get() cannot take arguments by reference in %s on line %d