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