summaryrefslogtreecommitdiff
path: root/tests/lang/bug23489.phpt
blob: c8535c5123211086d5409ad4a015001ac32b6abd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
Bug #23489 (ob_start() is broken with method callbacks)
--FILE--
<?php
class Test {
  function __construct() {
    ob_start(
      array(
        $this, 'transform'
      )
    );
  }

  function transform($buffer) {
    return 'success';
  }
}

$t = new Test;
?>
failure
--EXPECT--
success