Annotation of embedaddon/php/Zend/tests/objects_007.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: method overloading with different method signature
        !             3: --INI--
        !             4: error_reporting=8191
        !             5: --FILE--
        !             6: <?php
        !             7: 
        !             8: class test {
        !             9:        function foo($arg, &$arg2 = NULL) {}
        !            10: }
        !            11: 
        !            12: class test2 extends test {
        !            13:        function foo($arg, &$arg2 = NULL) {} 
        !            14: }
        !            15: 
        !            16: class test3 extends test {
        !            17:        function foo($arg, &$arg2) {} 
        !            18: }
        !            19: 
        !            20: echo "Done\n";
        !            21: ?>
        !            22: --EXPECTF--    
        !            23: Strict Standards: Declaration of test3::foo() should be compatible with that of test::foo() in %s on line %d
        !            24: Done

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