diff options
Diffstat (limited to 'tests/output/flush_basic_001.phpt')
| -rw-r--r-- | tests/output/flush_basic_001.phpt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/output/flush_basic_001.phpt b/tests/output/flush_basic_001.phpt new file mode 100644 index 0000000000..d9bb639794 --- /dev/null +++ b/tests/output/flush_basic_001.phpt @@ -0,0 +1,26 @@ +--TEST-- +Test basic functionality of flush() +--FILE-- +<?php +/* + * proto void flush(void) + * Function is implemented in ext/standard/basic_functions.c. + */ + +// Verify return type +var_dump(flush()); + +// Ensure user buffers are not flushed by flush() +ob_start(); +echo "Inside a user buffer\n"; +flush(); +ob_end_clean(); + +echo "Outside of any user buffers\n"; +var_dump(flush()); + +?> +--EXPECT-- +NULL +Outside of any user buffers +NULL
\ No newline at end of file |
