summaryrefslogtreecommitdiff
path: root/tests/output/ob_start_error_004.phpt
blob: ec6d44d091119beb200c568efb7ef3daa001404c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Test ob_start() with non existent callback method.
--FILE--
<?php
/* 
 * proto bool ob_start([ string|array user_function [, int chunk_size [, bool erase]]])
 * Function is implemented in main/output.c
*/ 

Class C {
}

$c = new C;
var_dump(ob_start(array($c, 'f')));
echo "done"
?>
--EXPECTF--
Catchable fatal error: Object of class C could not be converted to string in %s on line 11