2 +----------------------------------------------------------------------+
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
6 | Copyright (c) 1997-2010 The PHP Group |
7 +----------------------------------------------------------------------+
8 | This source file is subject to version 3.01 of the PHP license, |
9 | that is bundled with this package in the file LICENSE, and is |
10 | available through the world-wide-web at the following url: |
11 | http://www.php.net/license/3_01.txt |
12 | If you did not receive a copy of the PHP license and are unable to |
13 | obtain it through the world-wide-web, please send a note to |
14 | license@php.net so we can mail you a copy immediately. |
15 +----------------------------------------------------------------------+
20 #include "hphp/runtime/ext/std/ext_std.h"
23 ///////////////////////////////////////////////////////////////////////////////
25 extern const int64_t k_PHP_OUTPUT_HANDLER_CONT
;
26 extern const int64_t k_PHP_OUTPUT_HANDLER_WRITE
;
27 extern const int64_t k_PHP_OUTPUT_HANDLER_START
;
28 extern const int64_t k_PHP_OUTPUT_HANDLER_CLEAN
;
29 extern const int64_t k_PHP_OUTPUT_HANDLER_FLUSH
;
30 extern const int64_t k_PHP_OUTPUT_HANDLER_END
;
31 extern const int64_t k_PHP_OUTPUT_HANDLER_FINAL
;
32 extern const int64_t k_PHP_OUTPUT_HANDLER_CLEANABLE
;
33 extern const int64_t k_PHP_OUTPUT_HANDLER_FLUSHABLE
;
34 extern const int64_t k_PHP_OUTPUT_HANDLER_REMOVABLE
;
35 extern const int64_t k_PHP_OUTPUT_HANDLER_STDFLAGS
;
37 bool HHVM_FUNCTION(ob_start
, const Variant
& output_callback
= uninit_null(),
38 int64_t chunk_size
= 0,
39 int64_t flags
= k_PHP_OUTPUT_HANDLER_STDFLAGS
);
40 void HHVM_FUNCTION(ob_clean
);
41 bool HHVM_FUNCTION(ob_flush
);
42 bool HHVM_FUNCTION(ob_end_clean
);
43 bool HHVM_FUNCTION(ob_end_flush
);
44 void HHVM_FUNCTION(flush
);
45 Variant
HHVM_FUNCTION(ob_get_contents
);
46 Variant
HHVM_FUNCTION(ob_get_clean
);
47 Variant
HHVM_FUNCTION(ob_get_flush
);
48 int64_t HHVM_FUNCTION(ob_get_length
);
49 int64_t HHVM_FUNCTION(ob_get_level
);
50 Variant
HHVM_FUNCTION(ob_get_status
, bool full_status
= false);
51 void HHVM_FUNCTION(ob_implicit_flush
, bool flag
= true);
52 Array
HHVM_FUNCTION(ob_list_handlers
);
54 void HHVM_FUNCTION(hphp_crash_log
, const String
& name
, const String
& value
);
56 void HHVM_FUNCTION(hphp_stats
, const String
& name
, int64_t value
);
57 int64_t HHVM_FUNCTION(hphp_get_stats
, const String
& name
);
58 Array
HHVM_FUNCTION(hphp_get_status
);
59 Array
HHVM_FUNCTION(hphp_get_iostatus
);
60 void HHVM_FUNCTION(hphp_set_iostatus_address
, const String
& name
);
61 Variant
HHVM_FUNCTION(hphp_get_timers
, bool get_as_float
= true);
62 Variant
HHVM_FUNCTION(hphp_output_global_state
, bool serialize
= true);
63 int64_t HHVM_FUNCTION(hphp_instruction_counter
, void);
64 Variant
HHVM_FUNCTION(hphp_get_hardware_counters
, void);
65 bool HHVM_FUNCTION(hphp_set_hardware_events
, const Variant
& events
);
66 void HHVM_FUNCTION(hphp_clear_hardware_events
, void);
68 ///////////////////////////////////////////////////////////////////////////////