mirror of
https://github.com/php/php-src.git
synced 2025-01-02 08:54:04 +08:00
19 lines
318 B
PHP
19 lines
318 B
PHP
--TEST--
|
|
Test return type and value, as well as basic behaviour, of ob_get_clean()
|
|
--FILE--
|
|
<?php
|
|
/*
|
|
* proto bool ob_get_clean(void)
|
|
* Function is implemented in main/output.c
|
|
*/
|
|
|
|
var_dump(ob_get_clean());
|
|
|
|
ob_start();
|
|
echo "Hello World";
|
|
var_dump(ob_get_clean());
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|
|
string(11) "Hello World"
|