1--TEST--
2ob_start(): non-static method as static callbacks.
3--FILE--
4<?php
5/*
6 * Function is implemented in main/output.c
7*/
8
9Class C {
10    function h($string) {
11        return $string;
12    }
13}
14
15function checkAndClean() {
16  print_r(ob_list_handlers());
17  while (ob_get_level()>0) {
18    ob_end_flush();
19  }
20}
21
22var_dump(ob_start('C::h'));
23checkAndClean();
24
25?>
26--EXPECTF--
27Warning: ob_start(): non-static method C::h() cannot be called statically in %s on line %d
28
29Notice: ob_start(): Failed to create buffer in %s on line %d
30bool(false)
31Array
32(
33)
34