File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
tests /
output /
ob_start_basic_003.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: ob_start(): ensure even fatal error test is affected by output buffering.
3: --FILE--
4: <?php
5:
6: function f() {
7: return "I have stolen your output";
8: }
9:
10: ob_start('f');
11: cause_fatal_error(); // call undefined function
12: ob_end_flush();
13:
14: echo "done (you shouldn't see this)";
15:
16: ?>
17: --EXPECTF--
18: I have stolen your output
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>