summaryrefslogtreecommitdiff
path: root/tests/output/ob_end_clean_basic_001.phpt
blob: e3432a2243f36763df005393fb066e4e2c6623dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--TEST--
Test return type and value, as well as basic behaviour, for ob_end_clean()
--FILE--
<?php
/*
 * Function is implemented in main/output.c
*/

var_dump(ob_end_clean());

ob_start();
var_dump(ob_end_clean());

ob_start();
echo "Hello";
var_dump(ob_end_clean());

var_dump(ob_end_clean());

?>
--EXPECTF--
Notice: ob_end_clean(): Failed to delete buffer. No buffer to delete in %s on line %d
bool(false)
bool(true)
bool(true)

Notice: ob_end_clean(): Failed to delete buffer. No buffer to delete in %s on line %d
bool(false)