summaryrefslogtreecommitdiff
path: root/tests/output/ob_start_error_004.phpt
blob: aeb5be98b02f02f40eee97916400de7e30af718f (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 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--
Notice: ob_start(): failed to create buffer in %s on line 11
bool(false)
done