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