]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
authorSVN Migration <svn@php.net>
Mon, 5 May 2003 10:16:05 +0000 (10:16 +0000)
committerSVN Migration <svn@php.net>
Mon, 5 May 2003 10:16:05 +0000 (10:16 +0000)
tests/lang/bug23489.phpt [new file with mode: 0644]

diff --git a/tests/lang/bug23489.phpt b/tests/lang/bug23489.phpt
new file mode 100644 (file)
index 0000000..645bb1b
--- /dev/null
@@ -0,0 +1,23 @@
+--TEST--
+Bug #23489 (ob_start() is broken with method callbacks)
+--FILE--
+<?php
+class Test {
+  function Test() {
+    ob_start(
+      array(
+        $this, 'transform'
+      )
+    );
+  }
+
+  function transform($buffer) {
+    return 'success';
+  }
+}
+
+$t = new Test;
+?>
+failure
+--EXPECT--
+success