mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
Added test case for bug #22690
This commit is contained in:
parent
72aa28d0c3
commit
7fe8f6cf94
1 changed files with 12 additions and 0 deletions
12
tests/lang/bug22690.phpt
Normal file
12
tests/lang/bug22690.phpt
Normal file
|
@ -0,0 +1,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
|
Loading…
Add table
Add a link
Reference in a new issue