Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.41
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
ext /
opcache /
Optimizer /
Delete
Unzip
Name
Size
Permission
Date
Action
.libs
[ DIR ]
drwxr-xr-x
2024-03-12 14:21
block_pass.c
62.85
KB
-rw-rw-r--
2022-10-31 11:36
block_pass.lo
343
B
-rw-r--r--
2024-03-12 14:20
block_pass.o
190.32
KB
-rw-r--r--
2024-03-12 14:20
compact_literals.c
26.82
KB
-rw-rw-r--
2022-10-31 11:36
compact_literals.lo
361
B
-rw-r--r--
2024-03-12 14:20
compact_literals.o
119.45
KB
-rw-r--r--
2024-03-12 14:20
compact_vars.c
4.32
KB
-rw-rw-r--
2022-10-31 11:36
compact_vars.lo
349
B
-rw-r--r--
2024-03-12 14:21
compact_vars.o
64.34
KB
-rw-r--r--
2024-03-12 14:21
dce.c
20.51
KB
-rw-rw-r--
2022-10-31 11:36
dce.lo
322
B
-rw-r--r--
2024-03-12 14:21
dce.o
146.59
KB
-rw-r--r--
2024-03-12 14:21
dfa_pass.c
41.96
KB
-rw-rw-r--
2022-10-31 11:36
dfa_pass.lo
337
B
-rw-r--r--
2024-03-12 14:20
dfa_pass.o
160.44
KB
-rw-r--r--
2024-03-12 14:20
escape_analysis.c
14.67
KB
-rw-rw-r--
2022-10-31 11:36
escape_analysis.lo
358
B
-rw-r--r--
2024-03-12 14:21
escape_analysis.o
127.1
KB
-rw-r--r--
2024-03-12 14:21
nop_removal.c
3.75
KB
-rw-rw-r--
2022-10-31 11:36
nop_removal.lo
346
B
-rw-r--r--
2024-03-12 14:20
nop_removal.o
71.97
KB
-rw-r--r--
2024-03-12 14:20
optimize_func_calls.c
10.06
KB
-rw-rw-r--
2022-10-31 11:36
optimize_func_calls.lo
370
B
-rw-r--r--
2024-03-12 14:20
optimize_func_calls.o
92.51
KB
-rw-r--r--
2024-03-12 14:20
optimize_temp_vars_5.c
6.25
KB
-rw-rw-r--
2022-10-31 11:36
optimize_temp_vars_5.lo
373
B
-rw-r--r--
2024-03-12 14:20
optimize_temp_vars_5.o
84.93
KB
-rw-r--r--
2024-03-12 14:20
pass1_5.c
20.27
KB
-rw-rw-r--
2022-10-31 11:36
pass1_5.lo
334
B
-rw-r--r--
2024-03-12 14:20
pass1_5.o
111.31
KB
-rw-r--r--
2024-03-12 14:20
pass2.c
8.03
KB
-rw-rw-r--
2022-10-31 11:36
pass2.lo
328
B
-rw-r--r--
2024-03-12 14:20
pass2.o
78.8
KB
-rw-r--r--
2024-03-12 14:20
pass3.c
13.99
KB
-rw-rw-r--
2022-10-31 11:36
pass3.lo
328
B
-rw-r--r--
2024-03-12 14:20
pass3.o
77.67
KB
-rw-r--r--
2024-03-12 14:20
sccp.c
71.32
KB
-rw-rw-r--
2022-10-31 11:36
sccp.lo
325
B
-rw-r--r--
2024-03-12 14:21
sccp.o
537.66
KB
-rw-r--r--
2024-03-12 14:21
scdf.c
9.43
KB
-rw-rw-r--
2022-10-31 11:36
scdf.h
3.46
KB
-rw-rw-r--
2022-10-31 11:36
scdf.lo
325
B
-rw-r--r--
2024-03-12 14:21
scdf.o
87.01
KB
-rw-r--r--
2024-03-12 14:21
ssa_integrity.c
12.62
KB
-rw-rw-r--
2022-10-31 11:36
zend_call_graph.c
9.27
KB
-rw-rw-r--
2022-10-31 11:36
zend_call_graph.h
3.17
KB
-rw-rw-r--
2022-10-31 11:36
zend_call_graph.lo
358
B
-rw-r--r--
2024-03-12 14:21
zend_call_graph.o
107.78
KB
-rw-r--r--
2024-03-12 14:21
zend_cfg.c
25.16
KB
-rw-rw-r--
2022-10-31 11:36
zend_cfg.h
5.57
KB
-rw-rw-r--
2022-10-31 11:36
zend_cfg.lo
337
B
-rw-r--r--
2024-03-12 14:20
zend_cfg.o
131.81
KB
-rw-r--r--
2024-03-12 14:20
zend_dfg.c
8.25
KB
-rw-rw-r--
2022-10-31 11:36
zend_dfg.h
1.85
KB
-rw-rw-r--
2022-10-31 11:36
zend_dfg.lo
337
B
-rw-r--r--
2024-03-12 14:20
zend_dfg.o
90.51
KB
-rw-r--r--
2024-03-12 14:20
zend_dump.c
35.72
KB
-rw-rw-r--
2022-10-31 11:36
zend_dump.h
2.27
KB
-rw-rw-r--
2022-10-31 11:36
zend_dump.lo
340
B
-rw-r--r--
2024-03-12 14:21
zend_dump.o
182.13
KB
-rw-r--r--
2024-03-12 14:21
zend_func_info.c
113.3
KB
-rw-rw-r--
2022-10-31 11:36
zend_func_info.h
2.59
KB
-rw-rw-r--
2022-10-31 11:36
zend_func_info.lo
355
B
-rw-r--r--
2024-03-12 14:21
zend_func_info.o
202.44
KB
-rw-r--r--
2024-03-12 14:21
zend_inference.c
142.98
KB
-rw-rw-r--
2022-10-31 11:36
zend_inference.h
11.71
KB
-rw-rw-r--
2022-10-31 11:36
zend_inference.lo
355
B
-rw-r--r--
2024-03-12 14:20
zend_inference.o
994.6
KB
-rw-r--r--
2024-03-12 14:20
zend_optimizer.c
49.12
KB
-rw-rw-r--
2022-10-31 11:36
zend_optimizer.h
4.58
KB
-rw-rw-r--
2022-10-31 11:36
zend_optimizer.lo
355
B
-rw-r--r--
2024-03-12 14:20
zend_optimizer.o
227.7
KB
-rw-r--r--
2024-03-12 14:20
zend_optimizer_internal.h
6.36
KB
-rw-rw-r--
2022-10-31 11:36
zend_ssa.c
51.56
KB
-rw-rw-r--
2022-10-31 11:36
zend_ssa.h
11.23
KB
-rw-rw-r--
2022-10-31 11:36
zend_ssa.lo
337
B
-rw-r--r--
2024-03-12 14:20
zend_ssa.o
196.41
KB
-rw-r--r--
2024-03-12 14:20
zend_worklist.h
3.82
KB
-rw-rw-r--
2022-10-31 11:36
Save
Rename
/* +----------------------------------------------------------------------+ | Zend OPcache | +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | | available through the world-wide-web at the following url: | | http://www.php.net/license/3_01.txt | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Authors: Andi Gutmans <andi@php.net> | | Zeev Suraski <zeev@php.net> | | Stanislav Malyshev <stas@zend.com> | | Dmitry Stogov <dmitry@php.net> | +----------------------------------------------------------------------+ */ #include "php.h" #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_bitset.h" #define GET_AVAILABLE_T() \ for (i = 0; i < T; i++) { \ if (!zend_bitset_in(taken_T, i)) { \ break; \ } \ } \ zend_bitset_incl(taken_T, i); \ if (i > max) { \ max = i; \ } void zend_optimize_temporary_variables(zend_op_array *op_array, zend_optimizer_ctx *ctx) { int T = op_array->T; int offset = op_array->last_var; uint32_t bitset_len; zend_bitset taken_T; /* T index in use */ zend_op **start_of_T; /* opline where T is first used */ zend_bitset valid_T; /* Is the map_T valid */ int *map_T; /* Map's the T to its new index */ zend_op *opline, *end; int currT; int i; int max = -1; void *checkpoint = zend_arena_checkpoint(ctx->arena); bitset_len = zend_bitset_len(T); taken_T = (zend_bitset) zend_arena_alloc(&ctx->arena, bitset_len * ZEND_BITSET_ELM_SIZE); start_of_T = (zend_op **) zend_arena_alloc(&ctx->arena, T * sizeof(zend_op *)); valid_T = (zend_bitset) zend_arena_alloc(&ctx->arena, bitset_len * ZEND_BITSET_ELM_SIZE); map_T = (int *) zend_arena_alloc(&ctx->arena, T * sizeof(int)); end = op_array->opcodes; opline = &op_array->opcodes[op_array->last - 1]; /* Find T definition points */ while (opline >= end) { if (opline->result_type & (IS_VAR | IS_TMP_VAR)) { start_of_T[VAR_NUM(opline->result.var) - offset] = opline; } opline--; } zend_bitset_clear(valid_T, bitset_len); zend_bitset_clear(taken_T, bitset_len); end = op_array->opcodes; opline = &op_array->opcodes[op_array->last - 1]; while (opline >= end) { if ((opline->op1_type & (IS_VAR | IS_TMP_VAR))) { currT = VAR_NUM(opline->op1.var) - offset; if (opline->opcode == ZEND_ROPE_END) { int num = (((opline->extended_value + 1) * sizeof(zend_string*)) + (sizeof(zval) - 1)) / sizeof(zval); int var; var = max; while (var >= 0 && !zend_bitset_in(taken_T, var)) { var--; } max = MAX(max, var + num); var = var + 1; map_T[currT] = var; zend_bitset_incl(valid_T, currT); zend_bitset_incl(taken_T, var); opline->op1.var = NUM_VAR(var + offset); while (num > 1) { num--; zend_bitset_incl(taken_T, var + num); } } else { if (!zend_bitset_in(valid_T, currT)) { int use_new_var = 0; /* Code in "finally" blocks may modify temorary variables. * We allocate new temporaries for values that need to * relive FAST_CALLs. */ if ((op_array->fn_flags & ZEND_ACC_HAS_FINALLY_BLOCK) && (opline->opcode == ZEND_RETURN || opline->opcode == ZEND_GENERATOR_RETURN || opline->opcode == ZEND_RETURN_BY_REF || opline->opcode == ZEND_FREE || opline->opcode == ZEND_FE_FREE)) { zend_op *curr = opline; while (--curr >= end) { if (curr->opcode == ZEND_FAST_CALL) { use_new_var = 1; break; } else if (curr->opcode != ZEND_FREE && curr->opcode != ZEND_FE_FREE && curr->opcode != ZEND_VERIFY_RETURN_TYPE && curr->opcode != ZEND_DISCARD_EXCEPTION) { break; } } } if (use_new_var) { i = ++max; zend_bitset_incl(taken_T, i); } else { GET_AVAILABLE_T(); } map_T[currT] = i; zend_bitset_incl(valid_T, currT); } opline->op1.var = NUM_VAR(map_T[currT] + offset); } } if ((opline->op2_type & (IS_VAR | IS_TMP_VAR))) { currT = VAR_NUM(opline->op2.var) - offset; if (!zend_bitset_in(valid_T, currT)) { GET_AVAILABLE_T(); map_T[currT] = i; zend_bitset_incl(valid_T, currT); } opline->op2.var = NUM_VAR(map_T[currT] + offset); } if (opline->result_type & (IS_VAR | IS_TMP_VAR)) { currT = VAR_NUM(opline->result.var) - offset; if (zend_bitset_in(valid_T, currT)) { if (start_of_T[currT] == opline) { /* ZEND_FAST_CALL can not share temporary var with others * since the fast_var could also be set by ZEND_HANDLE_EXCEPTION * which could be ahead of it */ if (opline->opcode != ZEND_FAST_CALL) { zend_bitset_excl(taken_T, map_T[currT]); } } opline->result.var = NUM_VAR(map_T[currT] + offset); if (opline->opcode == ZEND_ROPE_INIT) { if (start_of_T[currT] == opline) { uint32_t num = ((opline->extended_value * sizeof(zend_string*)) + (sizeof(zval) - 1)) / sizeof(zval); while (num > 1) { num--; zend_bitset_excl(taken_T, map_T[currT]+num); } } } } else { /* Code which gets here is using a wrongly built opcode such as RECV() */ GET_AVAILABLE_T(); map_T[currT] = i; zend_bitset_incl(valid_T, currT); opline->result.var = NUM_VAR(i + offset); } } opline--; } zend_arena_release(&ctx->arena, checkpoint); op_array->T = max + 1; }