summaryrefslogtreecommitdiff
path: root/tests/lang/bug22690.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/bug22690.phpt')
-rw-r--r--tests/lang/bug22690.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/lang/bug22690.phpt b/tests/lang/bug22690.phpt
new file mode 100644
index 0000000..6aed5be
--- /dev/null
+++ b/tests/lang/bug22690.phpt
@@ -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