mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
13 lines
212 B
PHP
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
|