summaryrefslogtreecommitdiff
path: root/tests/output/ob_start_error_003.phpt
blob: 7bb88b41a18e4c6d61b8e052e62422b0a56e1501 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--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--
Notice: ob_start(): failed to create buffer in %s on line 11
bool(false)
done