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

1.1       misho       1: --TEST--
                      2: errmsg: can't use method return value in write context
                      3: --FILE--
                      4: <?php
                      5: 
                      6: class test {
                      7:        function foo() {
                      8:                return "blah";
                      9:        }
                     10: }
                     11: 
                     12: $t = new test;
                     13: $t->foo() = 1;
                     14: 
                     15: echo "Done\n";
                     16: ?>
                     17: --EXPECTF--    
                     18: Fatal error: Can't use method return value in write context in %s on line %d

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