Lines Matching refs:expr

4623 	zval *expr;  in ZEND_CAST_SPEC_CONST_HANDLER()  local
4628 expr = RT_CONSTANT(opline, opline->op1); in ZEND_CAST_SPEC_CONST_HANDLER()
4632 ZVAL_LONG(result, zval_get_long(expr)); in ZEND_CAST_SPEC_CONST_HANDLER()
4635 ZVAL_DOUBLE(result, zval_get_double(expr)); in ZEND_CAST_SPEC_CONST_HANDLER()
4638 ZVAL_STR(result, zval_get_string(expr)); in ZEND_CAST_SPEC_CONST_HANDLER()
4643 ZVAL_DEREF(expr); in ZEND_CAST_SPEC_CONST_HANDLER()
4646 if (Z_TYPE_P(expr) == opline->extended_value) { in ZEND_CAST_SPEC_CONST_HANDLER()
4647 ZVAL_COPY_VALUE(result, expr); in ZEND_CAST_SPEC_CONST_HANDLER()
4658 if (IS_CONST == IS_CONST || Z_TYPE_P(expr) != IS_OBJECT || Z_OBJCE_P(expr) == zend_ce_closure) { in ZEND_CAST_SPEC_CONST_HANDLER()
4659 if (Z_TYPE_P(expr) != IS_NULL) { in ZEND_CAST_SPEC_CONST_HANDLER()
4661 expr = zend_hash_index_add_new(Z_ARRVAL_P(result), 0, expr); in ZEND_CAST_SPEC_CONST_HANDLER()
4663 if (UNEXPECTED(Z_OPT_REFCOUNTED_P(expr))) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_CONST_HANDLER()
4665 if (Z_OPT_REFCOUNTED_P(expr)) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_CONST_HANDLER()
4671 HashTable *obj_ht = zend_get_properties_for(expr, ZEND_PROP_PURPOSE_ARRAY_CAST); in ZEND_CAST_SPEC_CONST_HANDLER()
4675 (Z_OBJCE_P(expr)->default_properties_count || in ZEND_CAST_SPEC_CONST_HANDLER()
4676 Z_OBJ_P(expr)->handlers != &std_object_handlers || in ZEND_CAST_SPEC_CONST_HANDLER()
4686 if (Z_TYPE_P(expr) == IS_ARRAY) { in ZEND_CAST_SPEC_CONST_HANDLER()
4687 ht = zend_symtable_to_proptable(Z_ARR_P(expr)); in ZEND_CAST_SPEC_CONST_HANDLER()
4693 } else if (Z_TYPE_P(expr) != IS_NULL) { in ZEND_CAST_SPEC_CONST_HANDLER()
4695 expr = zend_hash_add_new(ht, ZSTR_KNOWN(ZEND_STR_SCALAR), expr); in ZEND_CAST_SPEC_CONST_HANDLER()
4697 if (UNEXPECTED(Z_OPT_REFCOUNTED_P(expr))) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_CONST_HANDLER()
4699 if (Z_OPT_REFCOUNTED_P(expr)) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_CONST_HANDLER()
15859 zval *expr; in ZEND_INSTANCEOF_SPEC_TMPVAR_CONST_HANDLER() local
15863 expr = _get_zval_ptr_var(opline->op1.var EXECUTE_DATA_CC); in ZEND_INSTANCEOF_SPEC_TMPVAR_CONST_HANDLER()
15866 if (Z_TYPE_P(expr) == IS_OBJECT) { in ZEND_INSTANCEOF_SPEC_TMPVAR_CONST_HANDLER()
15887 result = ce && instanceof_function(Z_OBJCE_P(expr), ce); in ZEND_INSTANCEOF_SPEC_TMPVAR_CONST_HANDLER()
15888 } else if (((IS_TMP_VAR|IS_VAR) & (IS_VAR|IS_CV)) && Z_TYPE_P(expr) == IS_REFERENCE) { in ZEND_INSTANCEOF_SPEC_TMPVAR_CONST_HANDLER()
15889 expr = Z_REFVAL_P(expr); in ZEND_INSTANCEOF_SPEC_TMPVAR_CONST_HANDLER()
15892 if ((IS_TMP_VAR|IS_VAR) == IS_CV && UNEXPECTED(Z_TYPE_P(expr) == IS_UNDEF)) { in ZEND_INSTANCEOF_SPEC_TMPVAR_CONST_HANDLER()
17255 zval *expr; in ZEND_INSTANCEOF_SPEC_TMPVAR_VAR_HANDLER() local
17259 expr = _get_zval_ptr_var(opline->op1.var EXECUTE_DATA_CC); in ZEND_INSTANCEOF_SPEC_TMPVAR_VAR_HANDLER()
17262 if (Z_TYPE_P(expr) == IS_OBJECT) { in ZEND_INSTANCEOF_SPEC_TMPVAR_VAR_HANDLER()
17283 result = ce && instanceof_function(Z_OBJCE_P(expr), ce); in ZEND_INSTANCEOF_SPEC_TMPVAR_VAR_HANDLER()
17284 } else if (((IS_TMP_VAR|IS_VAR) & (IS_VAR|IS_CV)) && Z_TYPE_P(expr) == IS_REFERENCE) { in ZEND_INSTANCEOF_SPEC_TMPVAR_VAR_HANDLER()
17285 expr = Z_REFVAL_P(expr); in ZEND_INSTANCEOF_SPEC_TMPVAR_VAR_HANDLER()
17288 if ((IS_TMP_VAR|IS_VAR) == IS_CV && UNEXPECTED(Z_TYPE_P(expr) == IS_UNDEF)) { in ZEND_INSTANCEOF_SPEC_TMPVAR_VAR_HANDLER()
17538 zval *expr; in ZEND_INSTANCEOF_SPEC_TMPVAR_UNUSED_HANDLER() local
17542 expr = _get_zval_ptr_var(opline->op1.var EXECUTE_DATA_CC); in ZEND_INSTANCEOF_SPEC_TMPVAR_UNUSED_HANDLER()
17545 if (Z_TYPE_P(expr) == IS_OBJECT) { in ZEND_INSTANCEOF_SPEC_TMPVAR_UNUSED_HANDLER()
17566 result = ce && instanceof_function(Z_OBJCE_P(expr), ce); in ZEND_INSTANCEOF_SPEC_TMPVAR_UNUSED_HANDLER()
17567 } else if (((IS_TMP_VAR|IS_VAR) & (IS_VAR|IS_CV)) && Z_TYPE_P(expr) == IS_REFERENCE) { in ZEND_INSTANCEOF_SPEC_TMPVAR_UNUSED_HANDLER()
17568 expr = Z_REFVAL_P(expr); in ZEND_INSTANCEOF_SPEC_TMPVAR_UNUSED_HANDLER()
17571 if ((IS_TMP_VAR|IS_VAR) == IS_CV && UNEXPECTED(Z_TYPE_P(expr) == IS_UNDEF)) { in ZEND_INSTANCEOF_SPEC_TMPVAR_UNUSED_HANDLER()
18773 zval *expr; in ZEND_CAST_SPEC_TMP_HANDLER() local
18778 expr = _get_zval_ptr_tmp(opline->op1.var EXECUTE_DATA_CC); in ZEND_CAST_SPEC_TMP_HANDLER()
18782 ZVAL_LONG(result, zval_get_long(expr)); in ZEND_CAST_SPEC_TMP_HANDLER()
18785 ZVAL_DOUBLE(result, zval_get_double(expr)); in ZEND_CAST_SPEC_TMP_HANDLER()
18788 ZVAL_STR(result, zval_get_string(expr)); in ZEND_CAST_SPEC_TMP_HANDLER()
18793 ZVAL_DEREF(expr); in ZEND_CAST_SPEC_TMP_HANDLER()
18796 if (Z_TYPE_P(expr) == opline->extended_value) { in ZEND_CAST_SPEC_TMP_HANDLER()
18797 ZVAL_COPY_VALUE(result, expr); in ZEND_CAST_SPEC_TMP_HANDLER()
18808 … if (IS_TMP_VAR == IS_CONST || Z_TYPE_P(expr) != IS_OBJECT || Z_OBJCE_P(expr) == zend_ce_closure) { in ZEND_CAST_SPEC_TMP_HANDLER()
18809 if (Z_TYPE_P(expr) != IS_NULL) { in ZEND_CAST_SPEC_TMP_HANDLER()
18811 expr = zend_hash_index_add_new(Z_ARRVAL_P(result), 0, expr); in ZEND_CAST_SPEC_TMP_HANDLER()
18813 if (UNEXPECTED(Z_OPT_REFCOUNTED_P(expr))) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_TMP_HANDLER()
18815 if (Z_OPT_REFCOUNTED_P(expr)) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_TMP_HANDLER()
18821 HashTable *obj_ht = zend_get_properties_for(expr, ZEND_PROP_PURPOSE_ARRAY_CAST); in ZEND_CAST_SPEC_TMP_HANDLER()
18825 (Z_OBJCE_P(expr)->default_properties_count || in ZEND_CAST_SPEC_TMP_HANDLER()
18826 Z_OBJ_P(expr)->handlers != &std_object_handlers || in ZEND_CAST_SPEC_TMP_HANDLER()
18836 if (Z_TYPE_P(expr) == IS_ARRAY) { in ZEND_CAST_SPEC_TMP_HANDLER()
18837 ht = zend_symtable_to_proptable(Z_ARR_P(expr)); in ZEND_CAST_SPEC_TMP_HANDLER()
18843 } else if (Z_TYPE_P(expr) != IS_NULL) { in ZEND_CAST_SPEC_TMP_HANDLER()
18845 expr = zend_hash_add_new(ht, ZSTR_KNOWN(ZEND_STR_SCALAR), expr); in ZEND_CAST_SPEC_TMP_HANDLER()
18847 if (UNEXPECTED(Z_OPT_REFCOUNTED_P(expr))) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_TMP_HANDLER()
18849 if (Z_OPT_REFCOUNTED_P(expr)) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_TMP_HANDLER()
21390 zval *expr; in ZEND_CAST_SPEC_VAR_HANDLER() local
21395 expr = _get_zval_ptr_var(opline->op1.var EXECUTE_DATA_CC); in ZEND_CAST_SPEC_VAR_HANDLER()
21399 ZVAL_LONG(result, zval_get_long(expr)); in ZEND_CAST_SPEC_VAR_HANDLER()
21402 ZVAL_DOUBLE(result, zval_get_double(expr)); in ZEND_CAST_SPEC_VAR_HANDLER()
21405 ZVAL_STR(result, zval_get_string(expr)); in ZEND_CAST_SPEC_VAR_HANDLER()
21410 ZVAL_DEREF(expr); in ZEND_CAST_SPEC_VAR_HANDLER()
21413 if (Z_TYPE_P(expr) == opline->extended_value) { in ZEND_CAST_SPEC_VAR_HANDLER()
21414 ZVAL_COPY_VALUE(result, expr); in ZEND_CAST_SPEC_VAR_HANDLER()
21426 if (IS_VAR == IS_CONST || Z_TYPE_P(expr) != IS_OBJECT || Z_OBJCE_P(expr) == zend_ce_closure) { in ZEND_CAST_SPEC_VAR_HANDLER()
21427 if (Z_TYPE_P(expr) != IS_NULL) { in ZEND_CAST_SPEC_VAR_HANDLER()
21429 expr = zend_hash_index_add_new(Z_ARRVAL_P(result), 0, expr); in ZEND_CAST_SPEC_VAR_HANDLER()
21431 if (UNEXPECTED(Z_OPT_REFCOUNTED_P(expr))) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_VAR_HANDLER()
21433 if (Z_OPT_REFCOUNTED_P(expr)) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_VAR_HANDLER()
21439 HashTable *obj_ht = zend_get_properties_for(expr, ZEND_PROP_PURPOSE_ARRAY_CAST); in ZEND_CAST_SPEC_VAR_HANDLER()
21443 (Z_OBJCE_P(expr)->default_properties_count || in ZEND_CAST_SPEC_VAR_HANDLER()
21444 Z_OBJ_P(expr)->handlers != &std_object_handlers || in ZEND_CAST_SPEC_VAR_HANDLER()
21454 if (Z_TYPE_P(expr) == IS_ARRAY) { in ZEND_CAST_SPEC_VAR_HANDLER()
21455 ht = zend_symtable_to_proptable(Z_ARR_P(expr)); in ZEND_CAST_SPEC_VAR_HANDLER()
21461 } else if (Z_TYPE_P(expr) != IS_NULL) { in ZEND_CAST_SPEC_VAR_HANDLER()
21463 expr = zend_hash_add_new(ht, ZSTR_KNOWN(ZEND_STR_SCALAR), expr); in ZEND_CAST_SPEC_VAR_HANDLER()
21465 if (UNEXPECTED(Z_OPT_REFCOUNTED_P(expr))) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_VAR_HANDLER()
21467 if (Z_OPT_REFCOUNTED_P(expr)) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_VAR_HANDLER()
38261 zval *expr; in ZEND_CAST_SPEC_CV_HANDLER() local
38266 expr = _get_zval_ptr_cv_BP_VAR_R(opline->op1.var EXECUTE_DATA_CC); in ZEND_CAST_SPEC_CV_HANDLER()
38270 ZVAL_LONG(result, zval_get_long(expr)); in ZEND_CAST_SPEC_CV_HANDLER()
38273 ZVAL_DOUBLE(result, zval_get_double(expr)); in ZEND_CAST_SPEC_CV_HANDLER()
38276 ZVAL_STR(result, zval_get_string(expr)); in ZEND_CAST_SPEC_CV_HANDLER()
38281 ZVAL_DEREF(expr); in ZEND_CAST_SPEC_CV_HANDLER()
38284 if (Z_TYPE_P(expr) == opline->extended_value) { in ZEND_CAST_SPEC_CV_HANDLER()
38285 ZVAL_COPY_VALUE(result, expr); in ZEND_CAST_SPEC_CV_HANDLER()
38296 if (IS_CV == IS_CONST || Z_TYPE_P(expr) != IS_OBJECT || Z_OBJCE_P(expr) == zend_ce_closure) { in ZEND_CAST_SPEC_CV_HANDLER()
38297 if (Z_TYPE_P(expr) != IS_NULL) { in ZEND_CAST_SPEC_CV_HANDLER()
38299 expr = zend_hash_index_add_new(Z_ARRVAL_P(result), 0, expr); in ZEND_CAST_SPEC_CV_HANDLER()
38301 if (UNEXPECTED(Z_OPT_REFCOUNTED_P(expr))) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_CV_HANDLER()
38303 if (Z_OPT_REFCOUNTED_P(expr)) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_CV_HANDLER()
38309 HashTable *obj_ht = zend_get_properties_for(expr, ZEND_PROP_PURPOSE_ARRAY_CAST); in ZEND_CAST_SPEC_CV_HANDLER()
38313 (Z_OBJCE_P(expr)->default_properties_count || in ZEND_CAST_SPEC_CV_HANDLER()
38314 Z_OBJ_P(expr)->handlers != &std_object_handlers || in ZEND_CAST_SPEC_CV_HANDLER()
38324 if (Z_TYPE_P(expr) == IS_ARRAY) { in ZEND_CAST_SPEC_CV_HANDLER()
38325 ht = zend_symtable_to_proptable(Z_ARR_P(expr)); in ZEND_CAST_SPEC_CV_HANDLER()
38331 } else if (Z_TYPE_P(expr) != IS_NULL) { in ZEND_CAST_SPEC_CV_HANDLER()
38333 expr = zend_hash_add_new(ht, ZSTR_KNOWN(ZEND_STR_SCALAR), expr); in ZEND_CAST_SPEC_CV_HANDLER()
38335 if (UNEXPECTED(Z_OPT_REFCOUNTED_P(expr))) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_CV_HANDLER()
38337 if (Z_OPT_REFCOUNTED_P(expr)) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_CV_HANDLER()
42474 zval *expr; in ZEND_INSTANCEOF_SPEC_CV_CONST_HANDLER() local
42478 expr = EX_VAR(opline->op1.var); in ZEND_INSTANCEOF_SPEC_CV_CONST_HANDLER()
42481 if (Z_TYPE_P(expr) == IS_OBJECT) { in ZEND_INSTANCEOF_SPEC_CV_CONST_HANDLER()
42502 result = ce && instanceof_function(Z_OBJCE_P(expr), ce); in ZEND_INSTANCEOF_SPEC_CV_CONST_HANDLER()
42503 } else if ((IS_CV & (IS_VAR|IS_CV)) && Z_TYPE_P(expr) == IS_REFERENCE) { in ZEND_INSTANCEOF_SPEC_CV_CONST_HANDLER()
42504 expr = Z_REFVAL_P(expr); in ZEND_INSTANCEOF_SPEC_CV_CONST_HANDLER()
42507 if (IS_CV == IS_CV && UNEXPECTED(Z_TYPE_P(expr) == IS_UNDEF)) { in ZEND_INSTANCEOF_SPEC_CV_CONST_HANDLER()
46288 zval *expr; in ZEND_INSTANCEOF_SPEC_CV_VAR_HANDLER() local
46292 expr = EX_VAR(opline->op1.var); in ZEND_INSTANCEOF_SPEC_CV_VAR_HANDLER()
46295 if (Z_TYPE_P(expr) == IS_OBJECT) { in ZEND_INSTANCEOF_SPEC_CV_VAR_HANDLER()
46316 result = ce && instanceof_function(Z_OBJCE_P(expr), ce); in ZEND_INSTANCEOF_SPEC_CV_VAR_HANDLER()
46317 } else if ((IS_CV & (IS_VAR|IS_CV)) && Z_TYPE_P(expr) == IS_REFERENCE) { in ZEND_INSTANCEOF_SPEC_CV_VAR_HANDLER()
46318 expr = Z_REFVAL_P(expr); in ZEND_INSTANCEOF_SPEC_CV_VAR_HANDLER()
46321 if (IS_CV == IS_CV && UNEXPECTED(Z_TYPE_P(expr) == IS_UNDEF)) { in ZEND_INSTANCEOF_SPEC_CV_VAR_HANDLER()
47690 zval *expr; in ZEND_INSTANCEOF_SPEC_CV_UNUSED_HANDLER() local
47694 expr = EX_VAR(opline->op1.var); in ZEND_INSTANCEOF_SPEC_CV_UNUSED_HANDLER()
47697 if (Z_TYPE_P(expr) == IS_OBJECT) { in ZEND_INSTANCEOF_SPEC_CV_UNUSED_HANDLER()
47718 result = ce && instanceof_function(Z_OBJCE_P(expr), ce); in ZEND_INSTANCEOF_SPEC_CV_UNUSED_HANDLER()
47719 } else if ((IS_CV & (IS_VAR|IS_CV)) && Z_TYPE_P(expr) == IS_REFERENCE) { in ZEND_INSTANCEOF_SPEC_CV_UNUSED_HANDLER()
47720 expr = Z_REFVAL_P(expr); in ZEND_INSTANCEOF_SPEC_CV_UNUSED_HANDLER()
47723 if (IS_CV == IS_CV && UNEXPECTED(Z_TYPE_P(expr) == IS_UNDEF)) { in ZEND_INSTANCEOF_SPEC_CV_UNUSED_HANDLER()