mirror of
https://github.com/php/php-src.git
synced 2024-12-29 19:59:19 +08:00
24 lines
293 B
PHP
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
|