summaryrefslogtreecommitdiff
path: root/Zend/tests/magic_by_ref_002.phpt
blob: 41294468576c503bdd913d85345efedd2d12c467 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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