summaryrefslogtreecommitdiff
path: root/tests/output/ob_start_error_003.phpt
blob: ce2a2495d96906acbf0089521ae4f2358bf3d1de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Test ob_start() with object supplied but no 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)));
echo "done"
?>
--EXPECTF--
Catchable fatal error: Object of class C could not be converted to string in %s on line 11