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

1.1       misho       1: --TEST--
                      2: Trying assign value to property when an object is not returned in a function
                      3: --FILE--
                      4: <?php
                      5: 
                      6: class foo {
                      7:        public function a() {
                      8:        }
                      9: }
                     10: 
                     11: $test = new foo;
                     12: 
                     13: $test->a()->a;
                     14: print "ok\n";
                     15: 
                     16: $test->a()->a = 1;
                     17: print "ok\n";
                     18: 
                     19: ?>
                     20: --EXPECTF--
                     21: Notice: Trying to get property of non-object in %s on line %d
                     22: ok
                     23: 
                     24: Strict Standards: Creating default object from empty value in %s on line %d
                     25: ok

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