1--TEST--
2Test return type and value, as well as basic behaviour, of ob_get_length()
3--FILE--
4<?php
5/*
6 * Function is implemented in main/output.c
7*/
8
9echo "No output buffers\n";
10var_dump(ob_get_length());
11
12ob_start();
13var_dump(ob_get_length());
14echo "hello\n";
15var_dump(ob_get_length());
16ob_flush();
17$value = ob_get_length();
18echo "hello\n";
19ob_clean();
20var_dump(ob_get_length());
21var_dump($value);
22ob_end_flush();
23
24echo "No output buffers\n";
25var_dump(ob_get_length());
26?>
27--EXPECT--
28No output buffers
29bool(false)
30int(0)
31hello
32int(13)
33int(0)
34int(0)
35No output buffers
36bool(false)
37