php-src/tests/lang/bug23489.phpt
2003-05-05 10:16:04 +00:00

24 lines
293 B
PHP

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