/PHP-8.2/Zend/ |
H A D | zend_operators.c | 438 op1 = Z_REFVAL_P(op1); \ 1456 op1 = Z_REFVAL_P(op1); in boolean_xor_function() 1503 op1 = Z_REFVAL_P(op1); in boolean_not_function() 1557 op1 = Z_REFVAL_P(op1); in bitwise_not_function() 1901 op1 = Z_REFVAL_P(op1); in concat_function() 2219 op1 = Z_REFVAL_P(op1); in zend_compare() 2497 Z_DVAL_P(op1) = Z_DVAL_P(op1) + 1; in increment_function() 2533 op1 = Z_REFVAL_P(op1); in increment_function() 2539 if (Z_OBJ_HANDLER_P(op1, do_operation)(ZEND_ADD, op1, op1, &op2) == SUCCESS) { in increment_function() 2565 Z_DVAL_P(op1) = Z_DVAL_P(op1) - 1; in decrement_function() [all …]
|
H A D | zend_operators.h | 513 : "r"(&op1->value) in fast_long_increment_function() 524 : "r"(&op1->value) in fast_long_increment_function() 537 : "r"(&op1->value) in fast_long_increment_function() 564 Z_LVAL_P(op1)++; in fast_long_increment_function() 576 : "r"(&op1->value) in fast_long_decrement_function() 587 : "r"(&op1->value) in fast_long_decrement_function() 600 : "r"(&op1->value) in fast_long_decrement_function() 627 Z_LVAL_P(op1)--; in fast_long_decrement_function() 643 "r"(&op1->value), in fast_long_add_function() 661 "r"(&op1->value), in fast_long_add_function() [all …]
|
H A D | zend_vm_gen.php | 586 if (($op1 == 'TMP' || $op1 == 'VAR') && 588 $op1 = "TMPVAR"; 589 } else if (($op1 == 'TMP' || $op1 == 'VAR') && 596 $op1 = "ANY"; 632 if (($op1 == 'TMP' || $op1 == 'VAR') && 634 $op1 = "TMPVAR"; 635 } else if (($op1 == 'TMP' || $op1 == 'VAR') && 642 $op1 = "ANY"; 953 return (($op1 === 'UNUSED') || ($op1 === 'CV')) && ($op2 === 'CONST'); 1036 $op1 = "ANY"; [all …]
|
H A D | zend_vm_execute.h | 2722 op1 = Z_REFVAL_P(op1); in ZEND_ADD_ARRAY_UNPACK_SPEC_HANDLER() 7809 op1 = Z_REFVAL_P(op1); in ZEND_IN_ARRAY_SPEC_CONST_CONST_HANDLER() 7837 op1 = Z_REFVAL_P(op1); in ZEND_IN_ARRAY_SPEC_CONST_CONST_HANDLER() 10742 op1 = Z_REFVAL_P(op1); in ZEND_COUNT_SPEC_CONST_UNUSED_HANDLER() 10780 op1 = Z_REFVAL_P(op1); in ZEND_GET_CLASS_SPEC_CONST_UNUSED_HANDLER() 18000 op1 = Z_REFVAL_P(op1); in ZEND_COUNT_SPEC_TMPVAR_UNUSED_HANDLER() 18038 op1 = Z_REFVAL_P(op1); in ZEND_GET_CLASS_SPEC_TMPVAR_UNUSED_HANDLER() 20066 op1 = Z_REFVAL_P(op1); in ZEND_IN_ARRAY_SPEC_TMP_CONST_HANDLER() 20094 op1 = Z_REFVAL_P(op1); in ZEND_IN_ARRAY_SPEC_TMP_CONST_HANDLER() 25244 op1 = Z_REFVAL_P(op1); in ZEND_IN_ARRAY_SPEC_VAR_CONST_HANDLER() [all …]
|
H A D | zend_vm_def.h | 947 zval *op1; variable 6061 zval *op1; variable 6166 op1 = Z_REFVAL_P(op1); 8945 zval *op1 = EX_VAR(opline->op1.var); variable 8958 zval *op1 = EX_VAR(opline->op1.var); variable 8975 op1 = Z_INDIRECT_P(op1); 9104 zval *op1; variable 9124 op1 = Z_REFVAL_P(op1); 9152 op1 = Z_REFVAL_P(op1); 9213 op1 = Z_REFVAL_P(op1); [all …]
|
H A D | zend_ini_parser.y | 64 static void zend_ini_do_op(char type, zval *result, zval *op1, zval *op2) in zend_ini_do_op() argument 71 i_op1 = get_int_val(op1); in zend_ini_do_op() 112 static void zend_ini_add_string(zval *result, zval *op1, zval *op2) in zend_ini_add_string() argument 116 if (Z_TYPE_P(op1) != IS_STRING) { in zend_ini_add_string() 120 zend_string *str = zval_get_tmp_string(op1, &tmp_str); in zend_ini_add_string() 121 ZVAL_PSTRINGL(op1, ZSTR_VAL(str), ZSTR_LEN(str)); in zend_ini_add_string() 124 ZVAL_STR(op1, zval_get_string_func(op1)); in zend_ini_add_string() 127 op1_len = (int)Z_STRLEN_P(op1); in zend_ini_add_string() 134 ZVAL_NEW_STR(result, zend_string_extend(Z_STR_P(op1), length, ZEND_SYSTEM_INI)); in zend_ini_add_string()
|
H A D | zend_ast.c | 502 zval op1, op2; in zend_ast_evaluate_ex() local 541 ret = op(result, &op1); in zend_ast_evaluate_ex() 594 if (zend_is_true(&op1)) { in zend_ast_evaluate_ex() 605 zval_ptr_dtor_nogc(&op1); in zend_ast_evaluate_ex() 612 if (zend_is_true(&op1)) { in zend_ast_evaluate_ex() 623 zval_ptr_dtor_nogc(&op1); in zend_ast_evaluate_ex() 632 *result = op1; in zend_ast_evaluate_ex() 656 *result = op1; in zend_ast_evaluate_ex() 670 ZVAL_LONG(&op1, 0); in zend_ast_evaluate_ex() 679 ZVAL_LONG(&op1, -1); in zend_ast_evaluate_ex() [all …]
|
H A D | zend_object_handlers.h | 157 typedef zend_result (*zend_object_do_operation_t)(zend_uchar opcode, zval *result, zval *op1, zval … 267 #define ZEND_COMPARE_OBJECTS_FALLBACK(op1, op2) \ argument 268 if (Z_TYPE_P(op1) != IS_OBJECT || \ 270 Z_OBJ_HT_P(op1)->compare != Z_OBJ_HT_P(op2)->compare) { \ 271 return zend_std_compare_objects(op1, op2); \
|
/PHP-8.2/Zend/Optimizer/ |
H A D | sccp.c | 389 if (Z_TYPE_P(op1) == IS_ARRAY || IS_PARTIAL_ARRAY(op1)) { in ct_eval_fetch_dim() 412 ZVAL_BOOL(result, op1 && Z_TYPE_P(op1) != IS_NULL); in ct_eval_isset_isempty() 426 if (Z_TYPE_P(op1) == IS_ARRAY || IS_PARTIAL_ARRAY(op1)) { in ct_eval_isset_dim() 733 if (Z_TYPE_P(op1) != IS_STRING && Z_TYPE_P(op1) != IS_LONG && Z_TYPE_P(op1) != IS_NULL) { in ct_eval_array_key_exists() 1085 if (op1) { in sccp_visit_instr() 1114 if ((op1 && IS_BOT(op1)) in sccp_visit_instr() 1217 if ((op1 && IS_BOT(op1)) || (op2 && IS_BOT(op2))) { in sccp_visit_instr() 1263 if (op1) { in sccp_visit_instr() 1321 if (op1 && IS_PARTIAL_OBJECT(op1) in sccp_visit_instr() 1369 if (op1) { in sccp_visit_instr() [all …]
|
H A D | pass3.c | 83 ZEND_SET_OP_JMP_ADDR(opline, opline->op1, target); in zend_optimizer_pass3() 141 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3() 147 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3() 177 (SAME_VAR(target->op1, opline->result) || in zend_optimizer_pass3() 178 SAME_VAR(target->op1, opline->op1))) { in zend_optimizer_pass3() 185 (SAME_VAR(target->op1, opline->result) || in zend_optimizer_pass3() 186 SAME_VAR(target->op1, opline->op1))) { in zend_optimizer_pass3() 192 (SAME_VAR(target->op1, opline->result) || in zend_optimizer_pass3() 193 SAME_VAR(target->op1, opline->op1))) { in zend_optimizer_pass3() 200 SAME_VAR(target->op1, opline->op1))) { in zend_optimizer_pass3() [all …]
|
H A D | block_pass.c | 159 znode_op op1 = opline->op1; in zend_optimize_block() local 162 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 224 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 486 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 494 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 624 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 633 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 669 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 706 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 735 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() [all …]
|
H A D | zend_optimizer_internal.h | 28 #define ZEND_OP1_LITERAL(opline) (op_array)->literals[(opline)->op1.constant] 29 #define ZEND_OP1_JMP_ADDR(opline) OP_JMP_ADDR(opline, (opline)->op1) 42 #define SAME_VAR(op1, op2) (op1 ## _type == op2 ## _type && op1.var == op2.var) argument 84 zend_result zend_optimizer_eval_binary_op(zval *result, zend_uchar opcode, zval *op1, zval *op2); 85 zend_result zend_optimizer_eval_unary_op(zval *result, zend_uchar opcode, zval *op1); 86 zend_result zend_optimizer_eval_cast(zval *result, uint32_t type, zval *op1); 87 zend_result zend_optimizer_eval_strlen(zval *result, zval *op1);
|
H A D | compact_literals.c | 98 zval *class_name = &op_array->literals[op1]; in add_static_slot() 186 LITERAL_INFO(opline->op1.constant, 1); in zend_optimizer_compact_literals() 194 LITERAL_INFO(opline->op1.constant, 2); in zend_optimizer_compact_literals() 201 LITERAL_INFO(opline->op1.constant, 2); in zend_optimizer_compact_literals() 212 LITERAL_INFO(opline->op1.constant, 2); in zend_optimizer_compact_literals() 251 LITERAL_INFO(opline->op1.constant, 2); in zend_optimizer_compact_literals() 492 opline->op1.constant = map[opline->op1.constant]; in zend_optimizer_compact_literals() 524 opline->op1.constant, in zend_optimizer_compact_literals() 631 opline->op1.constant, in zend_optimizer_compact_literals() 674 opline->op1.constant, in zend_optimizer_compact_literals() [all …]
|
H A D | zend_optimizer.c | 63 return binary_op(result, op1, op2); in zend_optimizer_eval_binary_op() 75 return unary_op(result, op1); in zend_optimizer_eval_unary_op() 101 if (Z_TYPE_P(op1) != IS_ARRAY && Z_TYPE_P(op1) != IS_DOUBLE) { in zend_optimizer_eval_cast() 107 ZVAL_COPY(result, op1); in zend_optimizer_eval_cast() 117 if (Z_TYPE_P(op1) != IS_STRING) { in zend_optimizer_eval_strlen() 120 ZVAL_LONG(result, Z_STRLEN_P(op1)); in zend_optimizer_eval_strlen() 630 opline->op1.var == var) { in zend_optimizer_replace_by_const() 815 zval *op1 = CRT_CONSTANT(opline->op1); in zend_optimizer_get_class_entry_from_op1() local 816 if (Z_TYPE_P(op1) == IS_STRING) { in zend_optimizer_get_class_entry_from_op1() 1142 opline->op1.jmp_addr = &op_array->opcodes[opline->op1.jmp_addr - old_opcodes]; in zend_redo_pass_two() [all …]
|
H A D | dfa_pass.c | 362 && opline->op1.var == cv_var in opline_supports_assign_contraction() 486 call_info->caller_call_opline->op1.num = send_needly->op1.num; in zend_dfa_optimize_calls() 789 COPY_NODE(opline->op1, opline->op2); in zend_dfa_optimize_jmps() 971 SET_UNUSED(opline->op1); in zend_dfa_optimize_jmps() 1053 op_array->opcodes[use].op1.var = cv; in zend_dfa_try_to_replace_result() 1210 opline->op1.var = opline->op2.var; in zend_dfa_optimize_op_array() 1232 opline->op1.var = opline->op2.var; in zend_dfa_optimize_op_array() 1277 opline->op2.var = opline->op1.var; in zend_dfa_optimize_op_array() 1520 src_var, opline->op1.var) in zend_dfa_optimize_op_array() 1630 opline->op1.var = opline->op2.var; in zend_dfa_optimize_op_array() [all …]
|
H A D | zend_dfg.c | 28 var_num = EX_VAR_TO_NUM(opline->op1.var); in _zend_dfg_add_use_def_op() 58 zend_bitset_incl(def, EX_VAR_TO_NUM(opline->op1.var)); in _zend_dfg_add_use_def_op() 73 var_num = EX_VAR_TO_NUM(next->op1.var); in _zend_dfg_add_use_def_op() 88 var_num = EX_VAR_TO_NUM(next->op1.var); in _zend_dfg_add_use_def_op() 103 var_num = EX_VAR_TO_NUM(next->op1.var); in _zend_dfg_add_use_def_op() 115 var_num = EX_VAR_TO_NUM(next->op1.var); in _zend_dfg_add_use_def_op() 127 var_num = EX_VAR_TO_NUM(next->op1.var); in _zend_dfg_add_use_def_op() 137 var_num = EX_VAR_TO_NUM(next->op1.var); in _zend_dfg_add_use_def_op()
|
H A D | zend_ssa.c | 199 return EX_VAR_TO_NUM(op->op1.var); in find_adjusted_tmp_var() 204 return EX_VAR_TO_NUM(op->op1.var); in find_adjusted_tmp_var() 212 return EX_VAR_TO_NUM(op->op1.var); in find_adjusted_tmp_var() 215 zv = CRT_CONSTANT_EX(op_array, op, op->op1); in find_adjusted_tmp_var() 227 return EX_VAR_TO_NUM(op->op1.var); in find_adjusted_tmp_var() 269 int var = EX_VAR_TO_NUM(opline->op1.var); in place_essa_pis() 277 int var = EX_VAR_TO_NUM(opline->op1.var); in place_essa_pis() 307 var1 = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis() 441 int var = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis() 463 int var = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis() [all …]
|
H A D | zend_inference.h | 120 DEFINE_SSA_OP_HAS_RANGE(op1) 121 DEFINE_SSA_OP_MIN_RANGE(op1) 122 DEFINE_SSA_OP_MAX_RANGE(op1) 123 DEFINE_SSA_OP_RANGE_UNDERFLOW(op1) 124 DEFINE_SSA_OP_RANGE_OVERFLOW(op1) 189 DEFINE_SSA_OP_INFO(op1) 192 DEFINE_SSA_OP_DEF_INFO(op1) in DEFINE_SSA_OP_INFO()
|
H A D | compact_vars.c | 40 zend_bitset_incl(used_vars, VAR_NUM(opline->op1.var)); in zend_optimizer_compact_vars() 88 opline->op1.var = NUM_VAR(vars_map[VAR_NUM(opline->op1.var)]); in zend_optimizer_compact_vars()
|
H A D | optimize_temp_vars_5.c | 81 currT = VAR_NUM(opline->op1.var) - offset; in zend_optimize_temporary_variables() 94 opline->op1.var = NUM_VAR(var + offset); in zend_optimize_temporary_variables() 135 opline->op1.var = NUM_VAR(map_T[currT] + offset); in zend_optimize_temporary_variables()
|
/PHP-8.2/Zend/tests/ |
H A D | bug37046.phpt | 11 echo "op1 $k\n"; 20 op1 0 23 op1 1
|
/PHP-8.2/ext/intl/collator/ |
H A D | collator_sort.c | 51 static int collator_regular_compare_function(zval *result, zval *op1, zval *op2) in collator_regular_compare_function() argument 62 str1_p = collator_convert_object_to_string( op1, &str1 ); in collator_regular_compare_function() 136 static int collator_numeric_compare_function(zval *result, zval *op1, zval *op2) in collator_numeric_compare_function() argument 142 if( Z_TYPE_P(op1) == IS_STRING ) in collator_numeric_compare_function() 144 num1_p = collator_convert_string_to_double( op1, &num1 ); in collator_numeric_compare_function() 145 op1 = num1_p; in collator_numeric_compare_function() 154 ZVAL_LONG(result, numeric_compare_function(op1, op2)); in collator_numeric_compare_function() 168 static int collator_icu_compare_function(zval *result, zval *op1, zval *op2) in collator_icu_compare_function() argument 171 zend_string *str1 = collator_zval_to_string(op1); in collator_icu_compare_function()
|
H A D | collator_sort.h | 21 typedef int (*collator_compare_func_t)( zval *result, zval *op1, zval *op2 );
|
/PHP-8.2/ext/standard/ |
H A D | php_string.h | 64 PHPAPI int string_natural_compare_function_ex(zval *result, zval *op1, zval *op2, bool case_insensi… 65 PHPAPI int string_natural_compare_function(zval *result, zval *op1, zval *op2); 66 PHPAPI int string_natural_case_compare_function(zval *result, zval *op1, zval *op2);
|
/PHP-8.2/ext/opcache/tests/opt/ |
H A D | inference_008.phpt | 2 Type inference 008: ASSIGN_DIM with invalid op1
|