xref: /PHP-5.5/tests/output/flush_basic_001.phpt (revision bd7f18ab)
1--TEST--
2Test 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
11var_dump(flush());
12
13// Ensure user buffers are not flushed by flush()
14ob_start();
15echo "Inside a user buffer\n";
16flush();
17ob_end_clean();
18
19echo "Outside of any user buffers\n";
20var_dump(flush());
21
22?>
23--EXPECT--
24NULL
25Outside of any user buffers
26NULL