mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Add test case for bug #23489.
This commit is contained in:
parent
d276e85167
commit
938d90f1d8
23
tests/lang/bug23489.phpt
Normal file
23
tests/lang/bug23489.phpt
Normal 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
|
Loading…
Reference in New Issue
Block a user