Annotation of embedaddon/php/Zend/tests/magic_by_ref_004.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: passing parameter of __unset() by ref
! 3: --FILE--
! 4: <?php
! 5:
! 6: class test {
! 7: function __unset(&$name) { }
! 8: }
! 9:
! 10: $t = new test;
! 11: $name = "prop";
! 12:
! 13: var_dump($t->$name);
! 14:
! 15: echo "Done\n";
! 16: ?>
! 17: --EXPECTF--
! 18: Fatal error: Method test::__unset() cannot take arguments by reference in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>