cvs: php4 /tests/lang bug23489.phpt
| From: | Sebastian Bergmann | Date: | Mon, 05 May 2003 10:16:04 +0000 |
| Subject: | cvs: php4 /tests/lang bug23489.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-20699@lists.php.net to get a copy of this message | ||
sebastian Mon May 5 06:16:04 2003 EDT
Added files:
/php4/tests/lang bug23489.phpt
Log:
Add test case for bug #23489.
Index: php4/tests/lang/bug23489.phpt
+++ php4/tests/lang/bug23489.phpt
--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