mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
b5c7a83dca
Closes GH-5759
29 lines
530 B
PHP
29 lines
530 B
PHP
--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)
|