Annotation of embedaddon/php/tests/output/flush_basic_001.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test basic functionality of flush()
        !             3: --FILE--
        !             4: <?php
        !             5: /* 
        !             6:  * proto void flush(void)
        !             7:  * Function is implemented in ext/standard/basic_functions.c.
        !             8:  */
        !             9:   
        !            10: // Verify return type
        !            11: var_dump(flush());
        !            12: 
        !            13: // Ensure user buffers are not flushed by flush()
        !            14: ob_start();
        !            15: echo "Inside a user buffer\n";
        !            16: flush();
        !            17: ob_end_clean();
        !            18: 
        !            19: echo "Outside of any user buffers\n";
        !            20: var_dump(flush());
        !            21: 
        !            22: ?>
        !            23: --EXPECT--
        !            24: NULL
        !            25: Outside of any user buffers
        !            26: NULL

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