Annotation of embedaddon/php/tests/classes/static_mix_1.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: ZE2 You cannot overload a static method with a non static method
                      3: --SKIPIF--
                      4: <?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
                      5: --FILE--
                      6: <?php
                      7: 
                      8: class pass {
                      9:        static function show() {
                     10:                echo "Call to function pass::show()\n";
                     11:        }
                     12: }
                     13: 
                     14: class fail extends pass {
                     15:        function show() {
                     16:                echo "Call to function fail::show()\n";
                     17:        }
                     18: }
                     19: 
                     20: pass::show();
                     21: fail::show();
                     22: 
                     23: echo "Done\n"; // shouldn't be displayed
                     24: ?>                                                            
                     25: --EXPECTF--
                     26: Fatal error: Cannot make static method pass::show() non static in class fail in %s on line %d

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