Skip to content

include cleanup part 5 #10345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 105 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
4267c10
Zend/zend_iterators: add include guards
MaxKellermann Jan 22, 2023
4577ab2
main/php.h: add #include directives that some extensions rely on
MaxKellermann Jan 22, 2023
069c37e
Zend/zend_portability: include php_config.h for HAVE_*
MaxKellermann Jan 4, 2023
3e095a9
Zend/zend_globals_macros: add missing includes
MaxKellermann Jan 4, 2023
6ce9377
Zend/Optimizer/optimize_temp_vars_5: add missing include
MaxKellermann Jan 5, 2023
5cf96b9
Zend/Optimizer/compact_literals: add missing include
MaxKellermann Jan 5, 2023
9623506
Zend/Optimizer/block_pass: add missing include
MaxKellermann Jan 5, 2023
607c428
Zend/Optimizer/dfa_pass: add missing include
MaxKellermann Jan 5, 2023
b218f08
ext/opcache/ZendAccelerator.h: add missing include for "INIT_FUNC_ARGS"
MaxKellermann Jan 12, 2023
1dfed1b
main: add missing includes
MaxKellermann Jan 4, 2023
4f2582b
sapi/*: add missing includes
MaxKellermann Jan 4, 2023
fae879b
Zend/zend_build.h: include zend_config.h
MaxKellermann Jan 10, 2023
b6d6b7d
main/php_globals.h: add missing include for PHPAPI
MaxKellermann Jan 10, 2023
edf54c6
Zend/zend_multiply: add missing includes
MaxKellermann Jan 5, 2023
683f76f
Zend/zend_long: include zend_config.h
MaxKellermann Jan 4, 2023
6c98af5
Zend/Optimizer/dce: add missing include
MaxKellermann Jan 4, 2023
1934c13
Zend/Optimizer/sccp: add missing includes
MaxKellermann Jan 4, 2023
e9f67e3
Zend/zend_types: add missing include
MaxKellermann Jan 4, 2023
bd9d66c
Zend/zend_inheritance: add missing include
MaxKellermann Jan 5, 2023
e7d553b
ext/opcache/zend_accelerator_hash: add missing includes
MaxKellermann Jan 16, 2023
de0e4b1
ext/opcache/shared_alloc_mmap: add missing includes for MAXPATHLEN, g…
MaxKellermann Jan 16, 2023
e7cc386
ext/opcache/shared_alloc_win32: add missing include
MaxKellermann Jan 20, 2023
d16106b
Zend/zend_types.h: deprecate zend_bool, zend_intptr_t, zend_uintptr_t
MaxKellermann Feb 13, 2023
0ab8cd4
Zend/Optimizer/optimize_func_calls: include cleanup
MaxKellermann Jan 5, 2023
cbd59d3
Zend/zend_sort: include cleanup
MaxKellermann Jan 4, 2023
499f9d0
Zend/zend_alloc: include cleanup
MaxKellermann Jan 4, 2023
54cdf9e
ext/{standard,json,random,...}: add missing includes
MaxKellermann Jan 4, 2023
96dccd3
Zend/zend_hash: include cleanup
MaxKellermann Jan 4, 2023
9042bce
Zend/zend_ini: include cleanup
MaxKellermann Jan 4, 2023
8afa651
Zend/zend_signal: include cleanup
MaxKellermann Jan 4, 2023
4de9a86
Zend/zend_arena: include cleanup
MaxKellermann Jan 4, 2023
3a8814f
Zend/zend_smart_str: include cleanup
MaxKellermann Jan 4, 2023
9c8d343
Zend/zend_fibers: include cleanup
MaxKellermann Jan 4, 2023
3262500
Zend/zend_{operators,variables}: include cleanup
MaxKellermann Jan 4, 2023
ab0f21b
Zend/zend_string: include cleanup
MaxKellermann Jan 4, 2023
43734d3
main/s[np]printf: include cleanup
MaxKellermann Jan 4, 2023
756675b
Zend/zend_object_handlers: include cleanup
MaxKellermann Jan 4, 2023
53c76ce
Zend/zend_ptr_stack: include cleanup
MaxKellermann Jan 4, 2023
1c3eb67
Zend/zend_multibyte: include cleanup
MaxKellermann Jan 4, 2023
e861622
Zend/zend_execute: include cleanup
MaxKellermann Jan 4, 2023
1432d9b
ext/standard/md5: include cleanup
MaxKellermann Jan 4, 2023
4beba6d
Zend/zend_system_id: include cleanup
MaxKellermann Jan 4, 2023
40a7872
Zend/zend_extensions: include cleanup
MaxKellermann Jan 4, 2023
31ddcb2
Zend/zend_float: include cleanup
MaxKellermann Jan 4, 2023
e81f753
Zend/zend_stream: include cleanup
MaxKellermann Jan 4, 2023
1fa197e
Zend/Optimizer/zend_cfg: include cleanup
MaxKellermann Jan 4, 2023
e66175d
Zend/Optimizer/zend_optimizer: include cleanup
MaxKellermann Jan 4, 2023
0cfbed6
Zend/Optimizer/zend_ssa: include cleanup
MaxKellermann Jan 4, 2023
5a7b41f
ext/opcache/zend_accelerator_hash: include cleanup
MaxKellermann Jan 5, 2023
932473e
Zend/Optimizer/scdf: include cleanup
MaxKellermann Jan 4, 2023
4035fad
Zend/Optimizer/zend_call_graph: include cleanup
MaxKellermann Jan 4, 2023
1d788b4
Zend/zend_inference: include cleanup
MaxKellermann Jan 4, 2023
ad42377
Zend/zend_map_ptr: include cleanup
MaxKellermann Jan 4, 2023
c91d87d
Zend/zend_language_scanner: include cleanup
MaxKellermann Jan 4, 2023
0bcc5a8
Zend/zend_ast: include cleanup
MaxKellermann Jan 4, 2023
99ca71b
Zend/zend_call_stack: include cleanup
MaxKellermann Jan 4, 2023
5aa0a49
Zend/zend_iterators: include cleanup
MaxKellermann Jan 4, 2023
888b6a1
Zend/zend_compile: include cleanup
MaxKellermann Jan 4, 2023
7679497
Zend/zend_weakrefs: include cleanup
MaxKellermann Jan 4, 2023
e80a681
Zend/zend_enum: include cleanup
MaxKellermann Jan 4, 2023
6c5bbf2
Zend/zend_interfaces: include cleanup
MaxKellermann Jan 4, 2023
cfa814d
Zend/zend_observer: include cleanup
MaxKellermann Jan 4, 2023
1fba187
Zend/zend_llist: include cleanup
MaxKellermann Jan 4, 2023
3c99bab
Zend/zend_gc: include cleanup
MaxKellermann Jan 4, 2023
a09d589
Zend/zend_objects: include cleanup
MaxKellermann Jan 4, 2023
85c56e5
Zend/zend_list: include cleanup
MaxKellermann Jan 5, 2023
ff8407f
Zend/zend_API: include cleanup
MaxKellermann Jan 5, 2023
5e399eb
Zend/zend_closures: include cleanup
MaxKellermann Jan 5, 2023
7feee2a
Zend/zend_exceptions: include cleanup
MaxKellermann Jan 5, 2023
85085ce
Zend/zend_generators: include cleanup
MaxKellermann Jan 5, 2023
79888f0
Zend/zend_globals: include cleanup
MaxKellermann Jan 4, 2023
7f26a7a
main/php_ticks: include cleanup
MaxKellermann Jan 16, 2023
d5b338d
main/php_open_temporary_file: include cleanup
MaxKellermann Jan 16, 2023
35b26c0
main/php_syslog: include cleanup
MaxKellermann Jan 16, 2023
8623009
main/SAPI: include cleanup
MaxKellermann Jan 16, 2023
2a8d2fd
main/rfc1867: include cleanup
MaxKellermann Jan 16, 2023
7a64df2
main/fopen_wrappers: include cleanup
MaxKellermann Jan 16, 2023
ddaff80
ext/opcache/zend_accelerator_debug: include cleanup
MaxKellermann Jan 16, 2023
a639562
ext/opcache/zend_accelerator_blacklist: include cleanup
MaxKellermann Jan 16, 2023
9cc1c9c
ext/opcache/zend_shared_alloc: include cleanup
MaxKellermann Jan 16, 2023
c54fa44
ext/opcache/jit: include cleanup
MaxKellermann Jan 4, 2023
d2fdbc4
main/php_ini: include cleanup
MaxKellermann Jan 16, 2023
bd9cd9f
ext/opcache/zend_accelerator_module: include cleanup
MaxKellermann Jan 16, 2023
f9a22a9
ext/opcache/ZendAccelerator: include cleanup
MaxKellermann Jan 4, 2023
ebb2179
ext/opcache/zend_persist: include cleanup
MaxKellermann Jan 17, 2023
4e47f42
Zend/zend_virtual_cwd: include cleanup
MaxKellermann Jan 17, 2023
38f1ba6
Zend/zend_strtod: include cleanup
MaxKellermann Jan 17, 2023
bac2006
Zend/zend_stack: include cleanup
MaxKellermann Jan 17, 2023
c88819b
Zend/zend_highlight: include cleanup
MaxKellermann Jan 17, 2023
dadc012
Zend/zend_gdb: include cleanup
MaxKellermann Jan 17, 2023
c2d203e
Zend/zend_modules: include cleanup
MaxKellermann Jan 17, 2023
2801fd6
Zend/zend_cpuinfo: include cleanup
MaxKellermann Jan 17, 2023
f6fc88c
Zend/zend_attributes: include cleanup
MaxKellermann Jan 17, 2023
0e80019
ext/opcache/jit/zend_jit_gdb: include cleanup
MaxKellermann Feb 13, 2023
1d57321
sapi/phpdbg: include cleanup
MaxKellermann Feb 13, 2023
2e7daa2
Zend/zend: include cleanup
MaxKellermann Jan 17, 2023
7613004
ext/opcache/zend_accelerator_util_funcs: include cleanup
MaxKellermann Jan 18, 2023
98b47e8
Zend/zend_builtin_functions: include cleanup
MaxKellermann Jan 19, 2023
9bcbf5a
Zend/zend_opcode: include cleanup
MaxKellermann Jan 19, 2023
d8a21e7
Zend/zend_portability: move unnecessary includes to main/php.h
MaxKellermann Jan 19, 2023
1250ca5
Zend/zend_inheritance: include cleanup
MaxKellermann Jan 19, 2023
33b360b
Zend/zend.h: move zend_error*() prototypes to zend_error.h
MaxKellermann Jan 19, 2023
5d0d5b6
Zend/Optimizer/zend_func_info: include cleanup
MaxKellermann Jan 19, 2023
70a8cb4
Zend/zend_default_classes: include cleanup
MaxKellermann Jan 20, 2023
7b56e39
Zend/zend_cpuinfo.h: use `inline` instead of `zend_always_inline`
MaxKellermann Feb 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Zend/Optimizer/block_pass.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "Optimizer/zend_optimizer.h"
#include "Optimizer/zend_optimizer_internal.h"
#include "zend_API.h"
#include "zend_arena.h"
#include "zend_constants.h"
#include "zend_execute.h"
#include "zend_vm.h"
Expand Down
1 change: 1 addition & 0 deletions Zend/Optimizer/compact_literals.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include "Optimizer/zend_optimizer.h"
#include "Optimizer/zend_optimizer_internal.h"
#include "zend_arena.h"
#include "zend_API.h"
#include "zend_constants.h"
#include "zend_execute.h"
Expand Down
1 change: 1 addition & 0 deletions Zend/Optimizer/dce.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "Optimizer/zend_ssa.h"
#include "Optimizer/zend_func_info.h"
#include "Optimizer/zend_call_graph.h"
#include "zend_arena.h"
#include "zend_bitset.h"

/* This pass implements a form of dead code elimination (DCE). The algorithm optimistically assumes
Expand Down
1 change: 1 addition & 0 deletions Zend/Optimizer/dfa_pass.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "Optimizer/zend_optimizer.h"
#include "Optimizer/zend_optimizer_internal.h"
#include "zend_API.h"
#include "zend_arena.h"
#include "zend_constants.h"
#include "zend_execute.h"
#include "zend_vm.h"
Expand Down
6 changes: 2 additions & 4 deletions Zend/Optimizer/optimize_func_calls.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@

#include "Optimizer/zend_optimizer.h"
#include "Optimizer/zend_optimizer_internal.h"
#include "zend_API.h"
#include "zend_constants.h"
#include "zend_execute.h"
#include "zend_vm.h"
#include "zend_arena.h"
#include "zend_execute.h" // for zend_vm_calc_used_stack()

typedef struct _optimizer_call_info {
zend_function *func;
Expand Down
1 change: 1 addition & 0 deletions Zend/Optimizer/optimize_temp_vars_5.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include "Optimizer/zend_optimizer.h"
#include "Optimizer/zend_optimizer_internal.h"
#include "zend_arena.h"
#include "zend_API.h"
#include "zend_constants.h"
#include "zend_execute.h"
Expand Down
3 changes: 3 additions & 0 deletions Zend/Optimizer/sccp.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
*/

#include "zend_API.h"
#include "zend_arena.h"
#include "zend_multiply.h"
#include "zend_exceptions.h"
#include "zend_ini.h"
#include "zend_optimizer.h"
#include "zend_type_info.h"
#include "Optimizer/zend_optimizer_internal.h"
#include "Optimizer/zend_call_graph.h"
Expand Down
3 changes: 2 additions & 1 deletion Zend/Optimizer/scdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
+----------------------------------------------------------------------+
*/

#include "Optimizer/zend_optimizer_internal.h"
#include "Optimizer/scdf.h"
#include "Optimizer/zend_optimizer_internal.h"
#include "zend_arena.h"

/* This defines a generic framework for sparse conditional dataflow propagation. The algorithm is
* based on "Sparse conditional constant propagation" by Wegman and Zadeck. We're using a
Expand Down
5 changes: 5 additions & 0 deletions Zend/Optimizer/scdf.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
#define _SCDF_H

#include "zend_bitset.h"
#include "zend_long.h"
#include "zend_ssa.h"

typedef struct _zend_op_array zend_op_array;
typedef struct _zend_optimizer_ctx zend_optimizer_ctx;

typedef struct _scdf_ctx {
zend_op_array *op_array;
Expand Down
10 changes: 3 additions & 7 deletions Zend/Optimizer/zend_call_graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,11 @@
+----------------------------------------------------------------------+
*/

#include "zend_compile.h"
#include "zend_extensions.h"
#include "Optimizer/zend_optimizer.h"
#include "zend_optimizer_internal.h"
#include "zend_inference.h"
#include "zend_call_graph.h"
#include "zend_arena.h"
#include "zend_bitset.h"
#include "zend_func_info.h"
#include "zend_inference.h"
#include "zend_call_graph.h"
#include "zend_optimizer_internal.h"

static void zend_op_array_calc(zend_op_array *op_array, void *context)
{
Expand Down
5 changes: 3 additions & 2 deletions Zend/Optimizer/zend_call_graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
#define ZEND_CALL_GRAPH_H

#include "zend_ssa.h"
#include "zend_func_info.h"
#include "zend_optimizer.h"

typedef struct _zend_func_info zend_func_info;
typedef struct _zend_call_info zend_call_info;

typedef struct _zend_send_arg_info {
zend_op *opline;
Expand Down
9 changes: 4 additions & 5 deletions Zend/Optimizer/zend_cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@
+----------------------------------------------------------------------+
*/

#include "zend_compile.h"
#include "zend_cfg.h"
#include "zend_func_info.h"
#include "zend_worklist.h"
#include "zend_optimizer.h"
#include "zend_func_info.h" // for ZEND_FUNC_FREE_LOOP_VAR
#include "zend_globals.h" // struct _zend_executor_globals
#include "zend_globals_macros.h" // for EG()
#include "zend_optimizer_internal.h"
#include "zend_sort.h"
#include "zend_worklist.h"

static void zend_mark_reachable(zend_op *opcodes, zend_cfg *cfg, zend_basic_block *b) /* {{{ */
{
Expand Down
7 changes: 7 additions & 0 deletions Zend/Optimizer/zend_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
#ifndef ZEND_CFG_H
#define ZEND_CFG_H

#include "zend_portability.h" // for BEGIN_EXTERN_C

#include <stdint.h>

typedef struct _zend_arena zend_arena;
typedef struct _zend_op_array zend_op_array;

/* zend_basic_block.flags */
#define ZEND_BB_START (1<<0) /* first block */
#define ZEND_BB_FOLLOW (1<<1) /* follows the next block */
Expand Down
12 changes: 2 additions & 10 deletions Zend/Optimizer/zend_func_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,9 @@
+----------------------------------------------------------------------+
*/

#include "zend_compile.h"
#include "zend_extensions.h"
#include "zend_ssa.h"
#include "zend_optimizer_internal.h"
#include "zend_inference.h"
#include "zend_call_graph.h"
#include "zend_func_info.h"
#include "zend_inference.h"
#ifdef _WIN32
#include "win32/ioutil.h"
#endif
#include "zend_extensions.h" // for zend_get_resource_handle()
#include "zend_inference.h" // for zend_get_return_info_from_signature_only(), _ssa_op1_info()

typedef uint32_t (*info_func_t)(const zend_call_info *call_info, const zend_ssa *ssa);

Expand Down
3 changes: 2 additions & 1 deletion Zend/Optimizer/zend_func_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#ifndef ZEND_FUNC_INFO_H
#define ZEND_FUNC_INFO_H

#include "zend_ssa.h"
#include "zend_call_graph.h"

/* func/cfg flags */
#define ZEND_FUNC_INDIRECT_VAR_ACCESS (1<<0) /* accesses variables by name */
Expand All @@ -43,6 +43,7 @@

typedef struct _zend_func_info zend_func_info;
typedef struct _zend_call_info zend_call_info;
typedef struct _zend_ssa zend_ssa;

#define ZEND_FUNC_INFO(op_array) \
((zend_func_info*)((op_array)->reserved[zend_func_info_rid]))
Expand Down
8 changes: 5 additions & 3 deletions Zend/Optimizer/zend_inference.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@
+----------------------------------------------------------------------+
*/

#include "zend_compile.h"
#include "zend_generators.h"
#include "zend_inference.h"
#include "zend_closures.h" // for zend_ce_closure
#include "zend_generators.h" // for zend_ce_generator
#include "zend_func_info.h"
#include "zend_globals.h" // struct _zend_executor_globals
#include "zend_globals_macros.h" // for EG()
#include "zend_call_graph.h"
#include "zend_closures.h"
#include "zend_worklist.h"
#include "zend_optimizer.h"
#include "zend_optimizer_internal.h"

/* The used range inference algorithm is described in:
Expand Down
9 changes: 4 additions & 5 deletions Zend/Optimizer/zend_inference.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@
#ifndef ZEND_INFERENCE_H
#define ZEND_INFERENCE_H

#include "zend_optimizer.h"
#include "zend_cfg.h" // for CRT_CONSTANT()
#include "zend_compile.h" // for struct _zend_op
#include "zend_portability.h" // for BEGIN_EXTERN_C
#include "zend_ssa.h"
#include "zend_bitset.h"

/* Bitmask for type inference (zend_ssa_var_info.type) */
#include "zend_type_info.h"
#include "zend_type_info.h" // for MAY_BE_*

#include <stdint.h>

Expand Down
19 changes: 9 additions & 10 deletions Zend/Optimizer/zend_optimizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,16 @@

#include "Optimizer/zend_optimizer.h"
#include "Optimizer/zend_optimizer_internal.h"
#include "zend_API.h"
#include "zend_constants.h"
#include "zend_execute.h"
#include "zend_vm.h"
#include "zend_cfg.h"
#include "zend_func_info.h"
#include "zend_call_graph.h"
#include "zend_inference.h"
#include "zend_dump.h"
#include "php.h"
#include "php_globals.h" // for PG()
#include "zend_API.h" // for ZVAL_EMPTY_STRING()
#include "zend_arena.h"
#include "zend_call_graph.h" // for struct _zend_func_info
#include "zend_dump.h" // for zend_dump_op_array()
#include "zend_inference.h" // for OP1_INFO(), ...
#include "zend_ini.h"
#include "zend_observer.h"
#include "zend_virtual_cwd.h" //for IS_ABSOLUTE_PATH()
#include "zend_vm.h"

#ifndef ZEND_OPTIMIZER_MAX_REGISTERED_PASSES
# define ZEND_OPTIMIZER_MAX_REGISTERED_PASSES 32
Expand Down
7 changes: 5 additions & 2 deletions Zend/Optimizer/zend_optimizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@
#ifndef ZEND_OPTIMIZER_H
#define ZEND_OPTIMIZER_H

#include "zend.h"
#include "zend_compile.h"
#include "zend_compile.h" // for zend_op_array
#include "zend_hash.h"
#include "zend_portability.h" // for BEGIN_EXTERN_C

typedef struct _zend_string zend_string;

#define ZEND_OPTIMIZER_PASS_1 (1<<0) /* Simple local optimizations */
#define ZEND_OPTIMIZER_PASS_2 (1<<1) /* */
Expand Down
9 changes: 5 additions & 4 deletions Zend/Optimizer/zend_ssa.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
+----------------------------------------------------------------------+
*/

#include "zend_compile.h"
#include "zend_dfg.h"
#include "zend_ssa.h"
#include "zend_arena.h"
#include "zend_optimizer_internal.h"
#include "zend_dfg.h"
#include "zend_dump.h"
#include "zend_inference.h"
#include "Optimizer/zend_optimizer_internal.h"
#include "zend_inference.h" // for zend_sub_will_overflow()
#include "zend_type_info.h" // for MAY_BE_REF

static bool dominates(const zend_basic_block *blocks, int a, int b) {
while (blocks[b].level > blocks[a].level) {
Expand Down
7 changes: 6 additions & 1 deletion Zend/Optimizer/zend_ssa.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,15 @@
#ifndef ZEND_SSA_H
#define ZEND_SSA_H

#include "zend_optimizer.h"
#include "zend_cfg.h"
#include "zend_compile.h" // for struct _zend_op
#include "zend_long.h"
#include "zend_portability.h" // for BEGIN_EXTERN_C
#include "zend_result.h"

typedef struct _zend_class_entry zend_class_entry;
typedef struct _zend_script zend_script;

typedef struct _zend_ssa_range {
zend_long min;
zend_long max;
Expand Down
36 changes: 17 additions & 19 deletions Zend/zend.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,23 @@
*/

#include "zend.h"
#include "zend_extensions.h"
#include "zend_modules.h"
#include "zend_constants.h"
#include "zend_list.h"
#include "zend_API.h"
#include "zend_exceptions.h"
#include "zend_builtin_functions.h"
#include "zend_ini.h"
#include "zend_vm.h"
#include "zend_dtrace.h"
#include "zend_virtual_cwd.h"
#include "zend_smart_str.h"
#include "zend_smart_string.h"
#include "zend_cpuinfo.h"
#include "zend_attributes.h"
#include "zend_observer.h"
#include "zend_fibers.h"
#include "zend_call_stack.h"
#include "Optimizer/zend_optimizer.h"
#include "zend_attributes.h" // for zend_attributes_shutdown()
#include "zend_builtin_functions.h" // for zend_startup_builtin_functions()
#include "zend_cpuinfo.h" // for zend_cpu_startup()
#include "zend_constants.h" // for ZEND_CONSTANT_DTOR
#include "zend_errors.h" // for E_ALL, ...
#include "zend_exceptions.h" // for zend_throw_exception_hook
#include "zend_extensions.h" // for zend_startup_extensions_mechanism()
#include "zend_globals.h" // for EG()
#include "zend_ini.h" // for ZEND_INI_MH()
#include "zend_fibers.h" // for ZEND_FIBER_DEFAULT_C_STACK_SIZE
#include "zend_observer.h" // for zend_observer_activate()
#include "zend_smart_str.h" // for smart_str_*()
#include "zend_smart_string.h" // for smart_string_*()
#include "zend_strtod.h" // for zend_startup_strtod()
#include "zend_virtual_cwd.h" // for virtual_cwd_startup()
#include "zend_vm.h" // for ZEND_VM_SET_OPCODE_HANDLER()
#include "Optimizer/zend_optimizer.h" // for zend_optimizer_startup()

static size_t global_map_ptr_last = 0;
static bool startup_done = false;
Expand Down
Loading