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-- 23Notice: ob_end_clean(): failed to delete buffer. No buffer to delete in %s on line 7 24bool(false) 25bool(true) 26bool(true) 27 28Notice: ob_end_clean(): failed to delete buffer. No buffer to delete in %s on line 16 29bool(false) 30