summaryrefslogtreecommitdiff
path: root/tests/lang/bug22690.phpt
blob: 6aed5be6e91d66154aff6b5b61463ec3aa766b08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Bug #22690 (ob_start() is broken with create_function() callbacks)
--FILE--
<?php
	$foo = create_function('$s', 'return strtoupper($s);');
	ob_start($foo);
	echo $foo("bar\n");
?>
bar
--EXPECT--
BAR
BAR