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

1.1       misho       1: --TEST--
                      2: assigning static property as non static
                      3: --INI--
                      4: error_reporting=8191
                      5: --FILE--
                      6: <?php
                      7: 
                      8: class test { 
                      9:        static $foo = 1;
                     10: } 
                     11: 
                     12: $t = new test; 
                     13: $t->foo = 5;
                     14: 
                     15: $fp = fopen(__FILE__, 'r');
                     16: 
                     17: var_dump($t);
                     18: 
                     19: echo "Done\n";
                     20: ?>
                     21: --EXPECTF--    
                     22: Strict Standards: Accessing static property test::$foo as non static in %s on line %d
                     23: object(test)#%d (1) {
                     24:   ["foo"]=>
                     25:   int(5)
                     26: }
                     27: Done

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