1--TEST-- 2ob_get_status() function basic test 3--CREDITS-- 4Sebastian Schürmann 5sebs@php.net 6Testfest 2009 Munich 7--FILE-- 8<?php 9ob_start(); 10$status = ob_get_status(); 11ob_end_clean(); 12var_dump($status); 13 14ob_start(); 15$status = ob_get_status(false); 16ob_end_clean(); 17var_dump($status); 18 19ob_start(); 20$status = ob_get_status(true); 21ob_end_clean(); 22var_dump($status); 23?> 24--EXPECT-- 25array(7) { 26 ["name"]=> 27 string(22) "default output handler" 28 ["type"]=> 29 int(0) 30 ["flags"]=> 31 int(112) 32 ["level"]=> 33 int(0) 34 ["chunk_size"]=> 35 int(0) 36 ["buffer_size"]=> 37 int(16384) 38 ["buffer_used"]=> 39 int(0) 40} 41array(7) { 42 ["name"]=> 43 string(22) "default output handler" 44 ["type"]=> 45 int(0) 46 ["flags"]=> 47 int(112) 48 ["level"]=> 49 int(0) 50 ["chunk_size"]=> 51 int(0) 52 ["buffer_size"]=> 53 int(16384) 54 ["buffer_used"]=> 55 int(0) 56} 57array(1) { 58 [0]=> 59 array(7) { 60 ["name"]=> 61 string(22) "default output handler" 62 ["type"]=> 63 int(0) 64 ["flags"]=> 65 int(112) 66 ["level"]=> 67 int(0) 68 ["chunk_size"]=> 69 int(0) 70 ["buffer_size"]=> 71 int(16384) 72 ["buffer_used"]=> 73 int(0) 74 } 75} 76