summaryrefslogtreecommitdiff
path: root/Zend/tests/magic_by_ref_003.phpt
blob: 022cbd563c689861523a60efca7b1c44cf15f46b (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