Annotation of embedaddon/php/Zend/tests/magic_by_ref_007.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: passing second parameter of __call() by ref
                      3: --FILE--
                      4: <?php
                      5: 
                      6: class test {
                      7:     function __call($name, &$args) { }
                      8: }
                      9: 
                     10: $t = new test;
                     11: $func = "foo";
                     12: $arg = 1;
                     13: 
                     14: $t->$func($arg);
                     15: 
                     16: echo "Done\n";
                     17: ?>
                     18: --EXPECTF--    
                     19: Fatal error: Method test::__call() cannot take arguments by reference in %s on line %d

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>