1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-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