php-src/tests/lang/bug22690.phpt
2003-07-16 00:38:54 +00:00

13 lines
212 B
PHP

--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