File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
tests /
output /
flush_basic_001.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 5 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
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>