make PHP_SAPI dynamic based on execution mode
[hiphop-php.git] / hphp / runtime / base / hphp_system.h
blob69bd5c9ebcd2029224100e01032fea377a06a53c
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 3.01 of the PHP license, |
8 | that is bundled with this package in the file LICENSE, and is |
9 | available through the world-wide-web at the following url: |
10 | http://www.php.net/license/3_01.txt |
11 | If you did not receive a copy of the PHP license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@php.net so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
17 #ifndef incl_HPHP_CPP_BASE_HPHP_SYSTEM_H_
18 #define incl_HPHP_CPP_BASE_HPHP_SYSTEM_H_
20 ///////////////////////////////////////////////////////////////////////////////
22 /**
23 * This is the file that's included at top of a code generated system file.
26 #include "hphp/runtime/base/macros.h"
27 #include "hphp/runtime/base/zend/zend_functions.h"
28 #include "hphp/util/exception.h"
29 #include "hphp/runtime/base/type_conversions.h"
30 #include "hphp/runtime/base/builtin_functions.h"
31 #include "hphp/runtime/base/comparisons.h"
32 #include "hphp/runtime/base/string_offset.h"
33 #include "hphp/runtime/base/util/smart_object.h"
34 #include "hphp/runtime/base/list_assignment.h"
35 #include "hphp/runtime/base/resource_data.h"
36 #include "hphp/runtime/base/string_util.h"
37 #include "hphp/util/util.h"
38 #include "hphp/runtime/base/file/plain_file.h"
39 #include "hphp/runtime/base/class_info.h"
40 #include "hphp/runtime/base/externals.h"
41 #include "hphp/runtime/base/array/array_init.h"
42 #include "hphp/runtime/base/array/array_iterator.h"
43 #include "hphp/runtime/base/util/string_buffer.h"
44 #include "hphp/runtime/base/util/simple_counter.h"
45 #include "hphp/util/shm_counter.h"
47 namespace HPHP {
48 ///////////////////////////////////////////////////////////////////////////////
50 const char* getHphpCompilerVersion();
51 const char* getHphpCompilerId();
53 ///////////////////////////////////////////////////////////////////////////////
54 } // namespace HPHP
56 #define DECLARE_SYSTEM_GLOBALS(sg) \
57 SystemGlobals *sg ATTRIBUTE_UNUSED = \
58 get_global_variables();
60 #define DECLARE_GLOBAL_VARIABLES(g) \
61 SystemGlobals *g ATTRIBUTE_UNUSED = \
62 get_global_variables();
64 ///////////////////////////////////////////////////////////////////////////////
66 #endif // incl_HPHP_CPP_BASE_HPHP_SYSTEM_H_