/PHP-5.6/Zend/ |
H A D | zend_ast.c | 107 zval op1, op2; in zend_ast_evaluate() local 115 zval_dtor(&op2); in zend_ast_evaluate() 122 zval_dtor(&op2); in zend_ast_evaluate() 129 zval_dtor(&op2); in zend_ast_evaluate() 136 zval_dtor(&op2); in zend_ast_evaluate() 143 zval_dtor(&op2); in zend_ast_evaluate() 150 zval_dtor(&op2); in zend_ast_evaluate() 157 zval_dtor(&op2); in zend_ast_evaluate() 164 zval_dtor(&op2); in zend_ast_evaluate() 171 zval_dtor(&op2); in zend_ast_evaluate() [all …]
|
H A D | zend_operators.h | 618 "r"(&op2->value), in fast_add_function() 641 "r"(&op2->value), in fast_add_function() 708 "r"(&op2->value), in fast_sub_function() 735 "r"(&op2->value), in fast_sub_function() 804 if (UNEXPECTED(Z_LVAL_P(op2) == 0)) { in fast_div_function() 823 if (UNEXPECTED(Z_DVAL_P(op2) == 0)) { in fast_div_function() 835 if (UNEXPECTED(Z_DVAL_P(op2) == 0)) { in fast_div_function() 845 if (UNEXPECTED(Z_LVAL_P(op2) == 0)) { in fast_div_function() 864 if (UNEXPECTED(Z_LVAL_P(op2) == 0)) { in fast_mod_function() 964 } else if (Z_TYPE_P(op2) == IS_OBJECT && Z_OBJ_HANDLER_P(op2, do_operation)) { \ [all …]
|
H A D | zend_operators.c | 1227 shorter = op2; in bitwise_or_function() 1229 longer = op2; in bitwise_or_function() 1274 shorter = op2; in bitwise_and_function() 1276 longer = op2; in bitwise_and_function() 1321 shorter = op2; in bitwise_xor_function() 1323 longer = op2; in bitwise_xor_function() 1494 zval_dtor(op2); in concat_function() 1529 zval_dtor(op2); in string_compare_function_ex() 1721 op_free = Z_OBJ_HT_P(op2)->get(op2 TSRMLS_CC); in compare_function() 2051 zval *op2; in increment_function() local [all …]
|
H A D | zend_vm_gen.php | 312 $op2 = "ANY"; 373 $op2_type[$op2], 375 $op2_free[$op2], 377 $op2_get_zval_ptr[$op2], 385 $op2_is_tmp_free[$op2], 387 $op2_free_op[$op2], 389 $op2_free_op_if_var[$op2], 608 if ($op2 != "ANY") { 639 if ($op2 != "ANY") { 642 $op2 = "ANY"; [all …]
|
H A D | zend_vm_execute.h | 3645 …ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.… in zend_fetch_var_address_helper_SPEC_CONST_CONST() 4190 …ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.… in ZEND_UNSET_VAR_SPEC_CONST_CONST_HANDLER() 4266 …ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.… in ZEND_ISSET_ISEMPTY_VAR_SPEC_CONST_CONST_HANDLER() 5541 …ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.… in zend_fetch_var_address_helper_SPEC_CONST_VAR() 5971 …ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.… in ZEND_UNSET_VAR_SPEC_CONST_VAR_HANDLER() 6047 …ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.… in ZEND_ISSET_ISEMPTY_VAR_SPEC_CONST_VAR_HANDLER() 6296 …ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.… in zend_fetch_var_address_helper_SPEC_CONST_UNUSED() 6694 …ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.… in ZEND_UNSET_VAR_SPEC_CONST_UNUSED_HANDLER() 6770 …ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.… in ZEND_ISSET_ISEMPTY_VAR_SPEC_CONST_UNUSED_HANDLER() 9078 …ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.… in zend_fetch_var_address_helper_SPEC_TMP_CONST() [all …]
|
H A D | zend_compile.c | 592 SET_NODE(opline->op2, op2); in zend_do_binary_op() 654 SET_NODE(opline->op2, op2); in zend_do_binary_assign_op() 1430 SET_NODE(opline->op2, op2); in zend_do_add_string() 1449 SET_NODE(opline->op2, op2); in zend_do_add_variable() 4594 zval *op1, *op2; in do_bind_function() local 4598 op2 = &CONSTANT_EX(op_array, opline->op2.constant); in do_bind_function() 4601 op2 = opline->op2.zv; in do_bind_function() 4700 op2 = &CONSTANT_EX(op_array, opline->op2.constant); in do_bind_class() 4703 op2 = opline->op2.zv; in do_bind_class() 4740 op2 = &CONSTANT_EX(op_array, opline->op2.constant); in do_bind_inherited_class() [all …]
|
H A D | zend_vm_def.h | 1050 …ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.… 2815 func_name = opline->op2.literal + 1; 3072 if (EX_CV(opline->op2.var)) { 3075 …EX_CV(opline->op2.var) = (zval**)EX_CV_NUM(execute_data, EX(op_array)->last_var + opline->op2.var); 3731 … char *actual = (char *)zend_memrchr(Z_STRVAL_P(opline->op2.zv), '\\', Z_STRLEN_P(opline->op2.zv)); 4142 …ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.… 4648 …ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.… 4957 ZEND_VM_JMP(opline->op2.jmp_addr); 4992 ZEND_VM_JMP(opline->op2.jmp_addr); 5102 …quick_find(EG(class_table), Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv)+1, Z_HASH_P(opl… [all …]
|
H A D | zend_ini_parser.y | 52 static void zend_ini_do_op(char type, zval *result, zval *op1, zval *op2) in zend_ini_do_op() argument 60 if (op2) { in zend_ini_do_op() 61 i_op2 = atoi(Z_STRVAL_P(op2)); in zend_ini_do_op() 62 free(Z_STRVAL_P(op2)); in zend_ini_do_op() 109 static void zend_ini_add_string(zval *result, zval *op1, zval *op2) in zend_ini_add_string() argument 122 length = Z_STRLEN_P(op1) + Z_STRLEN_P(op2); in zend_ini_add_string() 125 memcpy(Z_STRVAL_P(result)+Z_STRLEN_P(op1), Z_STRVAL_P(op2), Z_STRLEN_P(op2)); in zend_ini_add_string()
|
H A D | zend_opcode.c | 586 SET_UNUSED(opline->op2); in zend_resolve_finally_call() 598 SET_UNUSED(opline->op2); in zend_resolve_finally_call() 617 SET_UNUSED(opline->op2); in zend_resolve_finally_call() 630 SET_UNUSED(opline->op2); in zend_resolve_finally_call() 662 op_array->opcodes[op_num].op2.opline_num = catch_op_num; in zend_resolve_finally_ret() 699 zend_uint num = opline->op2.constant; in zend_resolve_finally_calls() 700 opline->op2.zv = &op_array->literals[opline->op2.constant].constant; in zend_resolve_finally_calls() 702 opline->op2.constant = num; in zend_resolve_finally_calls() 757 opline->op2.zv = &op_array->literals[opline->op2.constant].constant; in pass_two() 761 if (Z_TYPE_P(opline->op2.zv) != IS_LONG) { in pass_two() [all …]
|
H A D | zend_ast.h | 52 ZEND_API zend_ast *zend_ast_create_ternary(uint kind, zend_ast *op0, zend_ast *op1, zend_ast *op2);
|
H A D | zend_object_handlers.h | 103 typedef int (*zend_object_compare_zvals_t)(zval *resul, zval *op1, zval *op2 TSRMLS_DC); 117 typedef int (*zend_object_do_operation_t)(zend_uchar opcode, zval *result, zval *op1, zval *op2 TSR…
|
/PHP-5.6/ext/opcache/Optimizer/ |
H A D | zend_optimizer_internal.h | 44 …)); memset(&opline->op1,0,sizeof(opline->op1)); memset(&opline->op2,0,sizeof(opline->op2)); opline… 47 …(op1, op2) ((((op1 ## _type & IS_VAR) && (op2 ## _type & IS_VAR)) || (op1 ## _type == IS_TMP_VAR &… argument 49 …op1,0,sizeof(znode)); memset(&opline->op2,0,sizeof(znode)); opline->result.op_type=opline->op1.op_… 52 …AR(op1, op2) (((op1.op_type == IS_VAR && op2.op_type == IS_VAR) || (op1.op_type == IS_TMP_VAR && … argument
|
H A D | optimize_func_calls.c | 28 zval *function_name = &op_array->literals[opline->op2.constant + 1].constant; in optimize_func_calls() 56 opline->op1.constant = fcall->op2.constant + 1; in optimize_func_calls() 57 …op_array->literals[fcall->op2.constant + 1].cache_slot = op_array->literals[fcall->op2.constant].c… in optimize_func_calls() 60 literal_dtor(&op_array->literals[fcall->op2.constant + 2].constant); in optimize_func_calls() 72 opline->op1.constant = fcall->op2.constant + 1; in optimize_func_calls() 73 …op_array->literals[fcall->op2.constant + 1].cache_slot = op_array->literals[fcall->op2.constant].c… in optimize_func_calls() 95 if (ARG_MUST_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in optimize_func_calls() 105 if (ARG_SHOULD_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in optimize_func_calls() 113 if (ARG_SHOULD_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in optimize_func_calls()
|
H A D | compact_literals.c | 116 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 2); in optimizer_compact_literals() 120 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 3); in optimizer_compact_literals() 128 opline->op2.constant, in optimizer_compact_literals() 142 opline->op2.constant, in optimizer_compact_literals() 165 opline->op2.constant, in optimizer_compact_literals() 190 opline->op2, in optimizer_compact_literals() 201 LITERAL_INFO(opline->op2.constant, LITERAL_CLASS, 1, 1, 2); in optimizer_compact_literals() 222 opline->op2.constant, in optimizer_compact_literals() 244 opline->op2.constant, in optimizer_compact_literals() 257 LITERAL_INFO(opline->op2.constant, LITERAL_VALUE, 1, 0, 1); in optimizer_compact_literals() [all …]
|
H A D | zend_optimizer.c | 190 opline->op2.constant = zend_optimizer_add_literal(op_array, val TSRMLS_CC); in update_op2_const() 207 op_array->literals[opline->op2.constant].cache_slot = op_array->last_cache_slot++; in update_op2_const() 210 …e->op2.constant+1].hash_value = zend_hash_func(Z_STRVAL(op_array->literals[opline->op2.constant+1]… in update_op2_const() 216 …e->op2.constant+1].hash_value = zend_hash_func(Z_STRVAL(op_array->literals[opline->op2.constant+1]… in update_op2_const() 232 op_array->literals[opline->op2.constant].cache_slot = op_array->last_cache_slot; in update_op2_const() 247 op_array->literals[opline->op2.constant].cache_slot = op_array->last_cache_slot; in update_op2_const() 290 op_array->literals[opline->op2.constant].constant = *val; in update_op2_const() 556 opline->op2.constant = opline->op2.literal - op_array->literals; in zend_accel_optimize() 597 opline->op2.zv = &op_array->literals[opline->op2.constant].constant; in zend_accel_optimize()
|
H A D | pass2.c | 98 SET_UNUSED(opline->op2); 115 COPY_NODE(opline->op1, opline->op2); 132 COPY_NODE(opline->op2, (opline + 1)->op1);
|
H A D | block_pass.c | 660 VAR_SOURCE(opline->op2) && in zend_optimize_block() 665 VAR_UNSET(opline->op2); in zend_optimize_block() 682 VAR_SOURCE(opline->op2) && in zend_optimize_block() 804 SET_UNUSED(opline->op2); in zend_optimize_block() 810 SET_UNUSED(opline->op2); in zend_optimize_block() 1045 SET_UNUSED(opline->op2); in zend_optimize_block() 1098 SET_UNUSED(opline->op2); in zend_optimize_block() 1130 SET_UNUSED(opline->op2); in zend_optimize_block() 1628 SET_UNUSED(last_op->op2); in zend_jmp_optimization() 1747 SET_UNUSED(last_op->op2); in zend_jmp_optimization() [all …]
|
/PHP-5.6/Zend/tests/ |
H A D | bug37046.phpt | 14 echo "op2 $k\n"; 21 op2 0 22 op2 1
|
/PHP-5.6/ext/intl/collator/ |
H A D | collator_sort.c | 53 static int collator_regular_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in collator_regular_compare_function() 60 zval* str2 = collator_convert_object_to_string( op2 TSRMLS_CC ); in collator_regular_compare_function() 148 static int collator_numeric_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in collator_numeric_compare_function() 160 if( Z_TYPE_P(op2) == IS_STRING ) in collator_numeric_compare_function() 162 num2 = collator_convert_string_to_double( op2 ); in collator_numeric_compare_function() 163 op2 = num2; in collator_numeric_compare_function() 166 rc = numeric_compare_function( result, op1, op2 TSRMLS_CC); in collator_numeric_compare_function() 180 static int collator_icu_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC) in collator_icu_compare_function() 188 str2 = collator_make_printable_zval( op2 ); in collator_icu_compare_function()
|
H A D | collator_sort.h | 23 typedef int (*collator_compare_func_t)( zval *result, zval *op1, zval *op2 TSRMLS_DC );
|
/PHP-5.6/ext/mbstring/oniguruma/ |
H A D | regsyntax.c | 245 onig_set_syntax_op2(OnigSyntaxType* syntax, unsigned int op2) in onig_set_syntax_op2() argument 247 syntax->op2 = op2; in onig_set_syntax_op2() 271 return syntax->op2; in onig_get_syntax_op2()
|
/PHP-5.6/ext/opcache/ |
H A D | ZendAccelerator.h | 379 # define ZEND_OP2(opline) (opline)->op2 380 # define ZEND_OP2_CONST(opline) (*(opline)->op2.zv) 381 # define ZEND_OP2_LITERAL(opline) (op_array)->literals[(opline)->op2.constant].constant 397 # define ZEND_OP2_TYPE(opline) (opline)->op2.op_type 398 # define ZEND_OP2(opline) (opline)->op2.u 399 # define ZEND_OP2_CONST(opline) (opline)->op2.u.constant 400 # define ZEND_OP2_LITERAL(opline) (opline)->op2.u.constant
|
/PHP-5.6/ext/standard/ |
H A D | php_string.h | 146 PHPAPI int string_natural_compare_function_ex(zval *result, zval *op1, zval *op2, zend_bool case_in… 147 PHPAPI int string_natural_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC); 148 PHPAPI int string_natural_case_compare_function(zval *result, zval *op1, zval *op2 TSRMLS_DC);
|
/PHP-5.6/ext/gmp/ |
H A D | gmp.c | 501 if (Z_TYPE_P(op2) != IS_LONG) { in shift_operator_helper() 502 op2_copy = *op2; in shift_operator_helper() 505 op2 = &op2_copy; in shift_operator_helper() 508 if (Z_LVAL_P(op2) < 0) { in shift_operator_helper() 517 op(gmpnum_result, gmpnum_op, (unsigned long) Z_LVAL_P(op2)); in shift_operator_helper() 524 result, op1, op2, op, (gmp_binary_ui_op_t) uop, \ 546 shift_operator_helper(mpz_pow_ui, result, op1, op2 TSRMLS_CC); in gmp_do_operation_ex() 553 shift_operator_helper(mpz_mul_2exp, result, op1, op2 TSRMLS_CC); in gmp_do_operation_ex() 556 shift_operator_helper(mpz_fdiv_q_2exp, result, op1, op2 TSRMLS_CC); in gmp_do_operation_ex() 583 retval = gmp_do_operation_ex(opcode, result, op1, op2 TSRMLS_CC); in gmp_do_operation() [all …]
|
/PHP-5.6/sapi/phpdbg/ |
H A D | phpdbg_opcode.c | 96 &decode[2], "J%u or J%lu", op->op2.opline_num, op->extended_value); in phpdbg_decode_opline() 112 &decode[2], "J%ld", op->op2.jmp_addr - ops->opcodes); in phpdbg_decode_opline() 120 decode[2] = phpdbg_decode_op(ops, &op->op2, op->op2_type, vars TSRMLS_CC); in phpdbg_decode_opline()
|