diff options
author | Sebastian Bergmann <sebastian@php.net> | 2003-05-05 10:16:04 +0000 |
---|---|---|
committer | Sebastian Bergmann <sebastian@php.net> | 2003-05-05 10:16:04 +0000 |
commit | 938d90f1d8471a8c306d67321a868f6cd98617a2 (patch) | |
tree | aeaf25eb1089e3e838b5a55e448fe968667412bd /tests | |
parent | d276e85167f912cd4f122dc12e433d2473c0d306 (diff) | |
download | php-git-938d90f1d8471a8c306d67321a868f6cd98617a2.tar.gz |
Add test case for bug #23489.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lang/bug23489.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/lang/bug23489.phpt b/tests/lang/bug23489.phpt new file mode 100644 index 0000000000..645bb1b7df --- /dev/null +++ b/tests/lang/bug23489.phpt @@ -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 |