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