]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
authorSVN Migration <svn@php.net>
Wed, 16 Jul 2003 00:38:55 +0000 (00:38 +0000)
committerSVN Migration <svn@php.net>
Wed, 16 Jul 2003 00:38:55 +0000 (00:38 +0000)
tests/lang/bug22690.phpt [new file with mode: 0644]

diff --git a/tests/lang/bug22690.phpt b/tests/lang/bug22690.phpt
new file mode 100644 (file)
index 0000000..6aed5be
--- /dev/null
@@ -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