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