Annotation of embedaddon/php/ext/standard/tests/general_functions/ob_get_flush_error.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test ob_get_flush() function : error conditions 
        !             3: --INI--
        !             4: output_buffering=0
        !             5: --FILE--
        !             6: <?php
        !             7: /* Prototype  : bool ob_get_flush(void)
        !             8:  * Description: Get current buffer contents, flush (send) the output buffer, and delete current output buffer 
        !             9:  * Source code: main/output.c
        !            10:  * Alias to functions: 
        !            11:  */
        !            12: 
        !            13: echo "*** Testing ob_get_flush() : error conditions ***\n";
        !            14: 
        !            15: // One extra argument
        !            16: $extra_arg = 10;
        !            17: var_dump( ob_get_flush( $extra_arg ) );
        !            18: 
        !            19: // No ob_start() executed
        !            20: var_dump( ob_get_flush() );
        !            21: 
        !            22: ?>
        !            23: ===DONE===
        !            24: --EXPECTF--
        !            25: *** Testing ob_get_flush() : error conditions ***
        !            26: 
        !            27: Warning: ob_get_flush() expects exactly 0 parameters, 1 given in %s on line %d
        !            28: NULL
        !            29: bool(false)
        !            30: ===DONE===

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