1--TEST--
2Test return type and value, as well as basic behaviour, for ob_end_clean()
3--FILE--
4<?php
5/*
6 * Function is implemented in main/output.c
7*/
8
9var_dump(ob_end_clean());
10
11ob_start();
12var_dump(ob_end_clean());
13
14ob_start();
15echo "Hello";
16var_dump(ob_end_clean());
17
18var_dump(ob_end_clean());
19
20?>
21--EXPECTF--
22Notice: ob_end_clean(): Failed to delete buffer. No buffer to delete in %s on line %d
23bool(false)
24bool(true)
25bool(true)
26
27Notice: ob_end_clean(): Failed to delete buffer. No buffer to delete in %s on line %d
28bool(false)
29