Add test case for bug #23489.

This commit is contained in:
Sebastian Bergmann 2003-05-05 10:16:04 +00:00
parent d276e85167
commit 938d90f1d8

23
tests/lang/bug23489.phpt Normal file
View File

@ -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