Annotation of embedaddon/php/ext/spl/tests/bug48493.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: SPL: Bug #48493 spl_autoload_unregister() can't handle prepended functions
        !             3: --FILE--
        !             4: <?php
        !             5: function autoload1() {}
        !             6: 
        !             7: function autoload2() {}
        !             8: 
        !             9: spl_autoload_register('autoload2');
        !            10: spl_autoload_register('autoload1', true, true);
        !            11: var_dump(spl_autoload_functions());
        !            12: 
        !            13: spl_autoload_unregister('autoload2');
        !            14: var_dump(spl_autoload_functions());
        !            15: ?>
        !            16: --EXPECT--
        !            17: array(2) {
        !            18:   [0]=>
        !            19:   string(9) "autoload1"
        !            20:   [1]=>
        !            21:   string(9) "autoload2"
        !            22: }
        !            23: array(1) {
        !            24:   [0]=>
        !            25:   string(9) "autoload1"
        !            26: }

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