File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
tests /
output /
ob_014.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, 8 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
--TEST--
output buffering - failure
--FILE--
<?php
ob_start("str_rot13");
echo "foo\n";
// str_rot13 expects 1 param and returns NULL when passed 2 params.
// It is invoked with 2 params when used as an OB callback.
// Therefore, there will be no data in the buffer. This is expected: see bug 46900.
ob_end_flush();
// Show the error.
print_r(error_get_last());
?>
--EXPECTF--
Array
(
[type] => 2
[message] => str_rot13() expects exactly 1 parameter, 2 given
[file] => %s
[line] => 7
)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>