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

1.1       misho       1: --TEST--
                      2: Testing visibility of object returned by function
                      3: --FILE--
                      4: <?php
                      5: 
                      6: class foo {
                      7:        private $test = 1;
                      8: }
                      9: 
                     10: function test() {
                     11:        return new foo;
                     12: }
                     13: 
                     14: test()->test = 2;
                     15: 
                     16: ?>
                     17: --EXPECTF--
                     18: Fatal error: Cannot access private property foo::$test in %s on line %d

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