/PHP-7.2/ext/opcache/Optimizer/ |
H A D | pass3.c | 331 zend_op *op; in zend_optimizer_pass3() 332 for(op = opline+1; op<end; op++) { in zend_optimizer_pass3() 338 if(op->opcode == ZEND_JMP || in zend_optimizer_pass3() 339 op->opcode == ZEND_JMPZ || in zend_optimizer_pass3() 344 op->opcode == ZEND_CASE || in zend_optimizer_pass3() 350 op->opcode == ZEND_EXIT) { in zend_optimizer_pass3() 365 for(op = &op_array->opcodes[opline->op2.opline_num]; op<end; op++) { in zend_optimizer_pass3() 372 if(op->opcode == ZEND_JMP || in zend_optimizer_pass3() 373 op->opcode == ZEND_JMPZ || in zend_optimizer_pass3() 378 op->opcode == ZEND_CASE || in zend_optimizer_pass3() [all …]
|
H A D | zend_optimizer_internal.h | 36 #define INV_COND(op) ((op) == ZEND_JMPZ ? ZEND_JMPNZ : ZEND_JMPZ) argument 37 #define INV_EX_COND(op) ((op) == ZEND_JMPZ_EX ? ZEND_JMPNZ : ZEND_JMPZ) argument 38 #define INV_COND_EX(op) ((op) == ZEND_JMPZ ? ZEND_JMPNZ_EX : ZEND_JMPZ_EX) argument 39 #define INV_EX_COND_EX(op) ((op) == ZEND_JMPZ_EX ? ZEND_JMPNZ_EX : ZEND_JMPZ_EX) argument 41 #define RESULT_UNUSED(op) (op->result_type == IS_UNUSED) argument 52 #define LITERAL_LONG(op, val) do { \ argument 55 op.constant = zend_optimizer_add_literal(op_array, &_c); \ 58 #define LITERAL_BOOL(op, val) do { \ argument 61 op.constant = zend_optimizer_add_literal(op_array, &_c); \
|
H A D | zend_ssa.c | 176 zend_op *op = opline; in find_adjusted_tmp_var() local 180 op--; in find_adjusted_tmp_var() 181 if (op->result_type != IS_TMP_VAR || op->result.var != var_num) { in find_adjusted_tmp_var() 196 if (op->op1_type == IS_CV && op->op2_type == IS_CONST) { in find_adjusted_tmp_var() 203 } else if (op->op2_type == IS_CV && op->op1_type == IS_CONST) { in find_adjusted_tmp_var() 212 if (op->op1_type == IS_CV && op->op2_type == IS_CONST) { in find_adjusted_tmp_var() 1036 op->op1_use_chain = ssa_vars[op->op1_use].use_chain; in zend_ssa_compute_use_def_chains() 1039 if (op->op2_use >= 0 && op->op2_use != op->op1_use) { in zend_ssa_compute_use_def_chains() 1040 op->op2_use_chain = ssa_vars[op->op2_use].use_chain; in zend_ssa_compute_use_def_chains() 1043 if (op->result_use >= 0 && op->result_use != op->op1_use && op->result_use != op->op2_use) { in zend_ssa_compute_use_def_chains() [all …]
|
/PHP-7.2/Zend/ |
H A D | zend_operators.c | 333 ZVAL_LONG(op, zend_dval_to_lval(Z_DVAL_P(op))); in convert_to_long_base() 339 ZVAL_LONG(op, zval_get_long(op)); in convert_to_long_base() 394 ZVAL_DOUBLE(op, (double) Z_LVAL_P(op)); in convert_to_double() 460 ZVAL_BOOL(op, Z_LVAL_P(op) ? 1 : 0); in convert_to_boolean() 463 ZVAL_BOOL(op, Z_DVAL_P(op) ? 1 : 0); in convert_to_boolean() 542 ZVAL_STR(op, zend_long_to_str(Z_LVAL_P(op))); in _convert_to_string() 783 op = Z_REFVAL_P(op); in _zval_get_long_func_ex() 834 op = Z_REFVAL_P(op); in _zval_get_double_func() 875 zval *z = Z_OBJ_HT_P(op)->get(op, &tmp); in _zval_get_string_func() 887 op = Z_REFVAL_P(op); in _zval_get_string_func() [all …]
|
H A D | zend_operators.h | 267 return Z_TYPE_P(op) == IS_LONG ? Z_LVAL_P(op) : _zval_get_long_func(op); in _zval_get_long() 270 return Z_TYPE_P(op) == IS_DOUBLE ? Z_DVAL_P(op) : _zval_get_double_func(op); in _zval_get_double() 273 return Z_TYPE_P(op) == IS_STRING ? zend_string_copy(Z_STR_P(op)) : _zval_get_string_func(op); in _zval_get_string() 276 #define zval_get_long(op) _zval_get_long((op)) argument 277 #define zval_get_double(op) _zval_get_double((op)) argument 278 #define zval_get_string(op) _zval_get_string((op)) argument 280 #define convert_to_cstring(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_cstring((op) ZEND_FILE_… argument 281 #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op) ZEND_FILE_LI… argument 310 if (Z_STRLEN_P(op) > 1 || (Z_STRLEN_P(op) && Z_STRVAL_P(op)[0] != '0')) { in i_zend_is_true() 328 op = Z_REFVAL_P(op); in i_zend_is_true() [all …]
|
H A D | zend_vm_execute.skl | 69 ZEND_API void zend_serialize_opcode_handler(zend_op *op) 76 zv = zend_hash_index_find(zend_handlers_table, (zend_long)(zend_uintptr_t)op->handler); 78 op->handler = (const void *)(zend_uintptr_t)Z_LVAL_P(zv); 81 ZEND_API void zend_deserialize_opcode_handler(zend_op *op) 83 op->handler = zend_opcode_handlers[(zend_uintptr_t)op->handler]; 86 ZEND_API const void *zend_get_opcode_handler_func(const zend_op *op) 89 return op->handler; 96 zv = zend_hash_index_find(zend_handlers_table, (zend_long)(zend_uintptr_t)op->handler);
|
H A D | zend_vm.h | 29 ZEND_API void zend_serialize_opcode_handler(zend_op *op); 30 ZEND_API void zend_deserialize_opcode_handler(zend_op *op); 31 ZEND_API const void *zend_get_opcode_handler_func(const zend_op *op);
|
/PHP-7.2/ext/standard/ |
H A D | versioning.c | 213 char *v1, *v2, *op = NULL; in PHP_FUNCTION() local 221 Z_PARAM_STRING(op, op_len) in PHP_FUNCTION() 225 if (!op) { in PHP_FUNCTION() 228 if (!strncmp(op, "<", op_len) || !strncmp(op, "lt", op_len)) { in PHP_FUNCTION() 231 if (!strncmp(op, "<=", op_len) || !strncmp(op, "le", op_len)) { in PHP_FUNCTION() 234 if (!strncmp(op, ">", op_len) || !strncmp(op, "gt", op_len)) { in PHP_FUNCTION() 237 if (!strncmp(op, ">=", op_len) || !strncmp(op, "ge", op_len)) { in PHP_FUNCTION() 240 if (!strncmp(op, "==", op_len) || !strncmp(op, "=", op_len) || !strncmp(op, "eq", op_len)) { in PHP_FUNCTION() 243 if (!strncmp(op, "!=", op_len) || !strncmp(op, "<>", op_len) || !strncmp(op, "ne", op_len)) { in PHP_FUNCTION()
|
/PHP-7.2/ext/pcre/pcrelib/sljit/ |
H A D | sljitLir.c | 89 #define GET_FLAG_TYPE(op) ((op) >> VARIABLE_FLAG_SHIFT) argument 94 #define HAS_FLAGS(op) \ argument 101 …(((op) >= SLJIT_MOV_U8 && (op) <= SLJIT_MOV_S16) || ((op) >= SLJIT_MOVU_U8 && (op) <= SLJIT_MOVU_S… 956 CHECK_ARGUMENT(op >= SLJIT_MOV && op <= SLJIT_MOV_P); in check_sljit_emit_return() 1012 CHECK_ARGUMENT((op >= SLJIT_BREAKPOINT && op <= SLJIT_LMUL_SW) in check_sljit_emit_op0() 1091 …!(op & SLJIT_I32_OP) ? "" : "32", (op != SLJIT_MOV32 && op != SLJIT_MOVU32) ? op1_names[GET_OPCODE… in check_sljit_emit_op1() 1167 !(op & VARIABLE_FLAG_MASK) ? "" : jump_names[GET_FLAG_TYPE(op)]); in check_sljit_emit_op2() 1525 CHECK_ARGUMENT(op == SLJIT_MOV || op == SLJIT_MOV32 in check_sljit_emit_op_flags() 1526 || (GET_OPCODE(op) >= SLJIT_AND && GET_OPCODE(op) <= SLJIT_XOR)); in check_sljit_emit_op_flags() 1546 …GET_OPCODE(op) < SLJIT_OP2_BASE ? op1_names[GET_OPCODE(op) - SLJIT_OP1_BASE] : ((op & SLJIT_I32_OP… in check_sljit_emit_op_flags() [all …]
|
H A D | sljitNativeMIPS_32.c | 43 if (op & SLJIT_SET_Z) \ 49 if (op & SLJIT_SET_Z) \ 57 if (op & SLJIT_SET_Z) \ 63 if (op & SLJIT_SET_Z) \ 74 switch (GET_OPCODE(op)) { in emit_single_op() 124 if (op & SLJIT_SET_Z) in emit_single_op() 133 if (op & SLJIT_SET_Z) in emit_single_op() 202 if (op & SLJIT_SET_Z) in emit_single_op() 284 if (op & SLJIT_SET_Z) in emit_single_op() 290 if (op & SLJIT_SET_Z) in emit_single_op() [all …]
|
H A D | sljitNativeSPARC_common.c | 113 #define DOP(op) ((op) << 5) argument 690 if (op >= SLJIT_MOV && op <= SLJIT_MOVU_S32) in emit_op() 741 if (!(flags & REG_DEST) && op >= SLJIT_MOV && op <= SLJIT_MOVU_S32) in emit_op() 799 op = GET_OPCODE(op); in sljit_emit_op0() 800 switch (op) { in sljit_emit_op0() 854 op = GET_OPCODE(op); in sljit_emit_op1() 855 switch (op) { in sljit_emit_op1() 927 op = GET_OPCODE(op); in sljit_emit_op2() 928 switch (op) { in sljit_emit_op2() 981 #define FLOAT_DATA(op) (DOUBLE_DATA | ((op & SLJIT_F32_OP) >> 7)) argument [all …]
|
H A D | sljitNativeMIPS_64.c | 126 if (op & SLJIT_SET_Z) \ 132 if (op & SLJIT_SET_Z) \ 147 if (op & SLJIT_SET_Z) \ 154 if (op & SLJIT_SET_Z) \ 166 switch (GET_OPCODE(op)) { in emit_single_op() 215 if (op & SLJIT_SET_Z) in emit_single_op() 224 if (op & SLJIT_SET_Z) in emit_single_op() 293 if (op & SLJIT_SET_Z) in emit_single_op() 375 if (op & SLJIT_SET_Z) in emit_single_op() 381 if (op & SLJIT_SET_Z) in emit_single_op() [all …]
|
H A D | sljitNativePPC_common.c | 1178 if (op >= SLJIT_MOV && op <= SLJIT_MOVU_S32) in emit_op() 1213 if (!(flags & REG_DEST) && op >= SLJIT_MOV && op <= SLJIT_MOVU_S32) in emit_op() 1287 op = GET_OPCODE(op); in sljit_emit_op0() 1288 switch (op) { in sljit_emit_op0() 1372 op = GET_OPCODE(op); in sljit_emit_op1() 1408 switch (op) { in sljit_emit_op1() 1683 if (!HAS_FLAGS(op) || GET_OPCODE(op) == SLJIT_AND) { in sljit_emit_op2() 1701 if (GET_OPCODE(op) != SLJIT_AND && GET_OPCODE(op) != SLJIT_AND) { in sljit_emit_op2() 1756 #define FLOAT_DATA(op) (DOUBLE_DATA | ((op & SLJIT_F32_OP) >> 6)) argument 1785 op = GET_OPCODE(op); in sljit_emit_fop1_conv_sw_from_f64() [all …]
|
H A D | sljitNativeMIPS_common.c | 931 if (op >= SLJIT_MOV && op <= SLJIT_MOVU_S32) in emit_op() 985 if (!(flags & REG_DEST) && op >= SLJIT_MOV && op <= SLJIT_MOVU_S32) in emit_op() 996 if ((op >= SLJIT_MOV && op <= SLJIT_MOVU_S32) && (dst & SLJIT_MEM)) in emit_op() 1047 op = GET_OPCODE(op); in sljit_emit_op0() 1048 switch (op) { in sljit_emit_op0() 1135 if ((op & SLJIT_I32_OP) && GET_OPCODE(op) >= SLJIT_NOT) { in sljit_emit_op1() 1316 #define FLOAT_DATA(op) (DOUBLE_DATA | ((op & SLJIT_F32_OP) >> 7)) argument 1317 #define FMT(op) (((op & SLJIT_F32_OP) ^ SLJIT_F32_OP) << (21 - 8)) argument 1443 op ^= SLJIT_F32_OP; in sljit_emit_fop1() 1471 op ^= SLJIT_F32_OP; in sljit_emit_fop1() [all …]
|
H A D | sljitNativeARM_32.c | 1115 if (!HAS_FLAGS(op)) in emit_single_op() 1481 op = SLJIT_SUB | GET_ALL_FLAGS(op); in emit_op() 1488 op = SLJIT_ADD | GET_ALL_FLAGS(op); in emit_op() 1517 op = SLJIT_SUB | GET_ALL_FLAGS(op); in emit_op() 1595 op = GET_OPCODE(op); in sljit_emit_op0() 1596 switch (op) { in sljit_emit_op0() 1859 op ^= SLJIT_F32_OP; in sljit_emit_fop1_conv_sw_from_f64() 1881 op ^= SLJIT_F32_OP; in sljit_emit_fop1_conv_f64_from_sw() 1905 op ^= SLJIT_F32_OP; in sljit_emit_fop1_cmp() 1981 op ^= SLJIT_F32_OP; in sljit_emit_fop2() [all …]
|
H A D | sljitNativeX86_common.c | 785 op = GET_OPCODE(op); in sljit_emit_op0() 852 switch (op) { in sljit_emit_op0() 1045 if (op >= SLJIT_MOV_U8 && op <= SLJIT_MOV_S8) in emit_prefetch() 1047 else if (op >= SLJIT_MOV_U16 && op <= SLJIT_MOV_S16) in emit_prefetch() 1271 op = GET_OPCODE(op); in sljit_emit_op1() 1273 if (op >= SLJIT_MOV && op <= SLJIT_MOVU_P) { in sljit_emit_op1() 1298 op -= 8; in sljit_emit_op1() 1302 switch (op) { in sljit_emit_op1() 1331 …if (SLJIT_UNLIKELY(dst_is_ereg) && (!(op == SLJIT_MOV || op == SLJIT_MOV_U32 || op == SLJIT_MOV_S3… in sljit_emit_op1() 1337 switch (op) { in sljit_emit_op1() [all …]
|
H A D | sljitNativeARM_T2_32.c | 1204 op = GET_OPCODE(op); in sljit_emit_op0() 1205 switch (op) { in sljit_emit_op0() 1291 op = GET_OPCODE(op); in sljit_emit_op1() 1292 if (op >= SLJIT_MOV && op <= SLJIT_MOVU_P) { in sljit_emit_op1() 1293 switch (op) { in sljit_emit_op1() 1520 op ^= SLJIT_F32_OP; in sljit_emit_fop1_conv_sw_from_f64() 1542 op ^= SLJIT_F32_OP; in sljit_emit_fop1_conv_f64_from_sw() 1566 op ^= SLJIT_F32_OP; in sljit_emit_fop1_cmp() 1596 op ^= SLJIT_F32_OP; in sljit_emit_fop1() 1642 op ^= SLJIT_F32_OP; in sljit_emit_fop2() [all …]
|
H A D | sljitNativeTILEGX_64.c | 1644 if (op & SLJIT_SET_E) in emit_single_op() 1653 if (op & SLJIT_SET_E) in emit_single_op() 1976 if (op >= SLJIT_MOV && op <= SLJIT_MOVU_S32 && !(src2 & SLJIT_MEM)) in emit_op() 1978 if (GET_FLAGS(op)) in emit_op() 1983 if (op >= SLJIT_MOV && op <= SLJIT_MOVU_S32) in emit_op() 2036 if (!(flags & REG_DEST) && op >= SLJIT_MOV && op <= SLJIT_MOVU_S32) in emit_op() 2045 if ((op >= SLJIT_MOV && op <= SLJIT_MOVU_S32) && (dst & SLJIT_MEM)) in emit_op() 2095 op = GET_OPCODE(op); in sljit_emit_op_flags() 2096 if (op == SLJIT_MOV_S32 || op == SLJIT_MOV_U32) in sljit_emit_op_flags() 2172 op = GET_OPCODE(op); in sljit_emit_op0() [all …]
|
H A D | sljitNativeARM_64.c | 561 if (arg1 == 0 && op != SLJIT_ADD && op != SLJIT_SUB) in emit_op_imm() 573 switch (op) { in emit_op_imm() 636 if (op == SLJIT_OR) in emit_op_imm() 693 switch (op) { in emit_op_imm() 1280 op = GET_OPCODE(op); in sljit_emit_op0() 1281 switch (op) { in sljit_emit_op0() 1324 if (op >= SLJIT_MOV_U8 && op <= SLJIT_MOV_S8) in sljit_emit_op1() 1326 else if (op >= SLJIT_MOV_U16 && op <= SLJIT_MOV_S16) in sljit_emit_op1() 1339 op = GET_OPCODE(op); in sljit_emit_op1() 1340 if (op >= SLJIT_MOV && op <= SLJIT_MOVU_P) { in sljit_emit_op1() [all …]
|
/PHP-7.2/sapi/phpdbg/ |
H A D | phpdbg_opcode.c | 40 zend_op_array *ops, const znode_op *op, uint32_t type) /* {{{ */ in phpdbg_decode_op() argument 46 zend_string *var = ops->vars[EX_VAR_TO_NUM(op->var)]; in phpdbg_decode_op() 53 spprintf(&decode, 0, "@%u", EX_VAR_TO_NUM(op->var) - ops->last_var); in phpdbg_decode_op() 56 spprintf(&decode, 0, "~%u", EX_VAR_TO_NUM(op->var) - ops->last_var); in phpdbg_decode_op() 59 zval *literal = RT_CONSTANT(ops, *op); in phpdbg_decode_op() 71 result = phpdbg_decode_op(ops, &op, op_type); in phpdbg_decode_input_op() 75 spprintf(&result, 0, "%" PRIu32, op.num); in phpdbg_decode_input_op() 77 if (op.num != (uint32_t)-1) { in phpdbg_decode_input_op() 78 spprintf(&result, 0, "try-catch(%" PRIu32 ")", op.num); in phpdbg_decode_input_op() 82 spprintf(&result, 0, "live-range(%" PRIu32 ")", op.num); in phpdbg_decode_input_op() [all …]
|
H A D | phpdbg_opcode.h | 26 char *phpdbg_decode_opline(zend_op_array *ops, zend_op *op); 37 zend_op *op; member
|
/PHP-7.2/ext/standard/tests/strings/ |
H A D | str_shuffle_basic.phpt | 29 $op = str_shuffle($ip); 31 if (!is_string($op) || strlen($op) != $len_ip) { 36 if (empty($a[$op])) { 38 $a[$op] = 0; 42 $a[$op]++;
|
/PHP-7.2/ext/filter/ |
H A D | filter.c | 682 if (!op) { in php_filter_array_handler() 686 } else if (Z_TYPE_P(op) == IS_LONG) { in php_filter_array_handler() 690 } else if (Z_TYPE_P(op) == IS_ARRAY) { in php_filter_array_handler() 806 zval *array_input = NULL, *op = NULL; in PHP_FUNCTION() local 813 …if (op && (Z_TYPE_P(op) != IS_ARRAY) && !(Z_TYPE_P(op) == IS_LONG && PHP_FILTER_ID_EXISTS(Z_LVAL_P… in PHP_FUNCTION() 822 if (op) { in PHP_FUNCTION() 823 if (Z_TYPE_P(op) == IS_LONG) { in PHP_FUNCTION() 824 filter_flags = Z_LVAL_P(op); in PHP_FUNCTION() 825 …} else if (Z_TYPE_P(op) == IS_ARRAY && (option = zend_hash_str_find(HASH_OF(op), "flags", sizeof("… in PHP_FUNCTION() 851 zval *array_input = NULL, *op = NULL; in PHP_FUNCTION() local [all …]
|
/PHP-7.2/Zend/tests/ |
H A D | bug38461.phpt | 19 $op = new ExtOperation; 20 $op->x = 'test';
|
/PHP-7.2/ext/fileinfo/libmagic/ |
H A D | funcs.c | 360 char *pbuf, *op, *np; in file_getbuffer() local 395 op = ms->o.buf; in file_getbuffer() 396 eop = op + len; in file_getbuffer() 398 while (op < eop) { in file_getbuffer() 400 (size_t)(eop - op), &state); in file_getbuffer() 409 op += bytesconsumed; in file_getbuffer() 413 OCTALIFY(np, op); in file_getbuffer() 424 for (np = ms->o.pbuf, op = ms->o.buf; *op;) { in file_getbuffer() 425 if (isprint((unsigned char)*op)) { in file_getbuffer() 426 *np++ = *op++; in file_getbuffer() [all …]
|