Lines Matching refs:expr
4887 zval *expr; in ZEND_CAST_SPEC_CONST_HANDLER() local
4892 expr = RT_CONSTANT(opline, opline->op1); in ZEND_CAST_SPEC_CONST_HANDLER()
4896 ZVAL_LONG(result, zval_get_long(expr)); in ZEND_CAST_SPEC_CONST_HANDLER()
4899 ZVAL_DOUBLE(result, zval_get_double(expr)); in ZEND_CAST_SPEC_CONST_HANDLER()
4902 ZVAL_STR(result, zval_get_string(expr)); in ZEND_CAST_SPEC_CONST_HANDLER()
4907 ZVAL_DEREF(expr); in ZEND_CAST_SPEC_CONST_HANDLER()
4910 if (Z_TYPE_P(expr) == opline->extended_value) { in ZEND_CAST_SPEC_CONST_HANDLER()
4911 ZVAL_COPY_VALUE(result, expr); in ZEND_CAST_SPEC_CONST_HANDLER()
4922 if (IS_CONST == IS_CONST || Z_TYPE_P(expr) != IS_OBJECT || Z_OBJCE_P(expr) == zend_ce_closure) { in ZEND_CAST_SPEC_CONST_HANDLER()
4923 if (Z_TYPE_P(expr) != IS_NULL) { in ZEND_CAST_SPEC_CONST_HANDLER()
4925 expr = zend_hash_index_add_new(Z_ARRVAL_P(result), 0, expr); in ZEND_CAST_SPEC_CONST_HANDLER()
4927 if (UNEXPECTED(Z_OPT_REFCOUNTED_P(expr))) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_CONST_HANDLER()
4929 if (Z_OPT_REFCOUNTED_P(expr)) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_CONST_HANDLER()
4934 } else if (Z_OBJ_P(expr)->properties == NULL in ZEND_CAST_SPEC_CONST_HANDLER()
4935 && Z_OBJ_HT_P(expr)->get_properties_for == NULL in ZEND_CAST_SPEC_CONST_HANDLER()
4936 && Z_OBJ_HT_P(expr)->get_properties == zend_std_get_properties) { in ZEND_CAST_SPEC_CONST_HANDLER()
4938 ZVAL_ARR(result, zend_std_build_object_properties_array(Z_OBJ_P(expr))); in ZEND_CAST_SPEC_CONST_HANDLER()
4940 HashTable *obj_ht = zend_get_properties_for(expr, ZEND_PROP_PURPOSE_ARRAY_CAST); in ZEND_CAST_SPEC_CONST_HANDLER()
4944 (Z_OBJCE_P(expr)->default_properties_count || in ZEND_CAST_SPEC_CONST_HANDLER()
4945 Z_OBJ_P(expr)->handlers != &std_object_handlers || in ZEND_CAST_SPEC_CONST_HANDLER()
4955 if (Z_TYPE_P(expr) == IS_ARRAY) { in ZEND_CAST_SPEC_CONST_HANDLER()
4956 ht = zend_symtable_to_proptable(Z_ARR_P(expr)); in ZEND_CAST_SPEC_CONST_HANDLER()
4962 } else if (Z_TYPE_P(expr) != IS_NULL) { in ZEND_CAST_SPEC_CONST_HANDLER()
4964 expr = zend_hash_add_new(ht, ZSTR_KNOWN(ZEND_STR_SCALAR), expr); in ZEND_CAST_SPEC_CONST_HANDLER()
4966 if (UNEXPECTED(Z_OPT_REFCOUNTED_P(expr))) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_CONST_HANDLER()
4968 if (Z_OPT_REFCOUNTED_P(expr)) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_CONST_HANDLER()
16465 zval *expr; in ZEND_INSTANCEOF_SPEC_TMPVAR_CONST_HANDLER() local
16469 expr = _get_zval_ptr_var(opline->op1.var EXECUTE_DATA_CC); in ZEND_INSTANCEOF_SPEC_TMPVAR_CONST_HANDLER()
16472 if (Z_TYPE_P(expr) == IS_OBJECT) { in ZEND_INSTANCEOF_SPEC_TMPVAR_CONST_HANDLER()
16493 result = ce && instanceof_function(Z_OBJCE_P(expr), ce); in ZEND_INSTANCEOF_SPEC_TMPVAR_CONST_HANDLER()
16494 } else if (((IS_TMP_VAR|IS_VAR) & (IS_VAR|IS_CV)) && Z_TYPE_P(expr) == IS_REFERENCE) { in ZEND_INSTANCEOF_SPEC_TMPVAR_CONST_HANDLER()
16495 expr = Z_REFVAL_P(expr); in ZEND_INSTANCEOF_SPEC_TMPVAR_CONST_HANDLER()
16498 if ((IS_TMP_VAR|IS_VAR) == IS_CV && UNEXPECTED(Z_TYPE_P(expr) == IS_UNDEF)) { in ZEND_INSTANCEOF_SPEC_TMPVAR_CONST_HANDLER()
17883 zval *expr; in ZEND_INSTANCEOF_SPEC_TMPVAR_VAR_HANDLER() local
17887 expr = _get_zval_ptr_var(opline->op1.var EXECUTE_DATA_CC); in ZEND_INSTANCEOF_SPEC_TMPVAR_VAR_HANDLER()
17890 if (Z_TYPE_P(expr) == IS_OBJECT) { in ZEND_INSTANCEOF_SPEC_TMPVAR_VAR_HANDLER()
17911 result = ce && instanceof_function(Z_OBJCE_P(expr), ce); in ZEND_INSTANCEOF_SPEC_TMPVAR_VAR_HANDLER()
17912 } else if (((IS_TMP_VAR|IS_VAR) & (IS_VAR|IS_CV)) && Z_TYPE_P(expr) == IS_REFERENCE) { in ZEND_INSTANCEOF_SPEC_TMPVAR_VAR_HANDLER()
17913 expr = Z_REFVAL_P(expr); in ZEND_INSTANCEOF_SPEC_TMPVAR_VAR_HANDLER()
17916 if ((IS_TMP_VAR|IS_VAR) == IS_CV && UNEXPECTED(Z_TYPE_P(expr) == IS_UNDEF)) { in ZEND_INSTANCEOF_SPEC_TMPVAR_VAR_HANDLER()
18175 zval *expr; in ZEND_INSTANCEOF_SPEC_TMPVAR_UNUSED_HANDLER() local
18179 expr = _get_zval_ptr_var(opline->op1.var EXECUTE_DATA_CC); in ZEND_INSTANCEOF_SPEC_TMPVAR_UNUSED_HANDLER()
18182 if (Z_TYPE_P(expr) == IS_OBJECT) { in ZEND_INSTANCEOF_SPEC_TMPVAR_UNUSED_HANDLER()
18203 result = ce && instanceof_function(Z_OBJCE_P(expr), ce); in ZEND_INSTANCEOF_SPEC_TMPVAR_UNUSED_HANDLER()
18204 } else if (((IS_TMP_VAR|IS_VAR) & (IS_VAR|IS_CV)) && Z_TYPE_P(expr) == IS_REFERENCE) { in ZEND_INSTANCEOF_SPEC_TMPVAR_UNUSED_HANDLER()
18205 expr = Z_REFVAL_P(expr); in ZEND_INSTANCEOF_SPEC_TMPVAR_UNUSED_HANDLER()
18208 if ((IS_TMP_VAR|IS_VAR) == IS_CV && UNEXPECTED(Z_TYPE_P(expr) == IS_UNDEF)) { in ZEND_INSTANCEOF_SPEC_TMPVAR_UNUSED_HANDLER()
19449 zval *expr; in ZEND_CAST_SPEC_TMP_HANDLER() local
19454 expr = _get_zval_ptr_tmp(opline->op1.var EXECUTE_DATA_CC); in ZEND_CAST_SPEC_TMP_HANDLER()
19458 ZVAL_LONG(result, zval_get_long(expr)); in ZEND_CAST_SPEC_TMP_HANDLER()
19461 ZVAL_DOUBLE(result, zval_get_double(expr)); in ZEND_CAST_SPEC_TMP_HANDLER()
19464 ZVAL_STR(result, zval_get_string(expr)); in ZEND_CAST_SPEC_TMP_HANDLER()
19469 ZVAL_DEREF(expr); in ZEND_CAST_SPEC_TMP_HANDLER()
19472 if (Z_TYPE_P(expr) == opline->extended_value) { in ZEND_CAST_SPEC_TMP_HANDLER()
19473 ZVAL_COPY_VALUE(result, expr); in ZEND_CAST_SPEC_TMP_HANDLER()
19484 … 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()
19485 if (Z_TYPE_P(expr) != IS_NULL) { in ZEND_CAST_SPEC_TMP_HANDLER()
19487 expr = zend_hash_index_add_new(Z_ARRVAL_P(result), 0, expr); in ZEND_CAST_SPEC_TMP_HANDLER()
19489 if (UNEXPECTED(Z_OPT_REFCOUNTED_P(expr))) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_TMP_HANDLER()
19491 if (Z_OPT_REFCOUNTED_P(expr)) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_TMP_HANDLER()
19496 } else if (Z_OBJ_P(expr)->properties == NULL in ZEND_CAST_SPEC_TMP_HANDLER()
19497 && Z_OBJ_HT_P(expr)->get_properties_for == NULL in ZEND_CAST_SPEC_TMP_HANDLER()
19498 && Z_OBJ_HT_P(expr)->get_properties == zend_std_get_properties) { in ZEND_CAST_SPEC_TMP_HANDLER()
19500 ZVAL_ARR(result, zend_std_build_object_properties_array(Z_OBJ_P(expr))); in ZEND_CAST_SPEC_TMP_HANDLER()
19502 HashTable *obj_ht = zend_get_properties_for(expr, ZEND_PROP_PURPOSE_ARRAY_CAST); in ZEND_CAST_SPEC_TMP_HANDLER()
19506 (Z_OBJCE_P(expr)->default_properties_count || in ZEND_CAST_SPEC_TMP_HANDLER()
19507 Z_OBJ_P(expr)->handlers != &std_object_handlers || in ZEND_CAST_SPEC_TMP_HANDLER()
19517 if (Z_TYPE_P(expr) == IS_ARRAY) { in ZEND_CAST_SPEC_TMP_HANDLER()
19518 ht = zend_symtable_to_proptable(Z_ARR_P(expr)); in ZEND_CAST_SPEC_TMP_HANDLER()
19524 } else if (Z_TYPE_P(expr) != IS_NULL) { in ZEND_CAST_SPEC_TMP_HANDLER()
19526 expr = zend_hash_add_new(ht, ZSTR_KNOWN(ZEND_STR_SCALAR), expr); in ZEND_CAST_SPEC_TMP_HANDLER()
19528 if (UNEXPECTED(Z_OPT_REFCOUNTED_P(expr))) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_TMP_HANDLER()
19530 if (Z_OPT_REFCOUNTED_P(expr)) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_TMP_HANDLER()
22117 zval *expr; in ZEND_CAST_SPEC_VAR_HANDLER() local
22122 expr = _get_zval_ptr_var(opline->op1.var EXECUTE_DATA_CC); in ZEND_CAST_SPEC_VAR_HANDLER()
22126 ZVAL_LONG(result, zval_get_long(expr)); in ZEND_CAST_SPEC_VAR_HANDLER()
22129 ZVAL_DOUBLE(result, zval_get_double(expr)); in ZEND_CAST_SPEC_VAR_HANDLER()
22132 ZVAL_STR(result, zval_get_string(expr)); in ZEND_CAST_SPEC_VAR_HANDLER()
22137 ZVAL_DEREF(expr); in ZEND_CAST_SPEC_VAR_HANDLER()
22140 if (Z_TYPE_P(expr) == opline->extended_value) { in ZEND_CAST_SPEC_VAR_HANDLER()
22141 ZVAL_COPY_VALUE(result, expr); in ZEND_CAST_SPEC_VAR_HANDLER()
22153 if (IS_VAR == IS_CONST || Z_TYPE_P(expr) != IS_OBJECT || Z_OBJCE_P(expr) == zend_ce_closure) { in ZEND_CAST_SPEC_VAR_HANDLER()
22154 if (Z_TYPE_P(expr) != IS_NULL) { in ZEND_CAST_SPEC_VAR_HANDLER()
22156 expr = zend_hash_index_add_new(Z_ARRVAL_P(result), 0, expr); in ZEND_CAST_SPEC_VAR_HANDLER()
22158 if (UNEXPECTED(Z_OPT_REFCOUNTED_P(expr))) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_VAR_HANDLER()
22160 if (Z_OPT_REFCOUNTED_P(expr)) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_VAR_HANDLER()
22165 } else if (Z_OBJ_P(expr)->properties == NULL in ZEND_CAST_SPEC_VAR_HANDLER()
22166 && Z_OBJ_HT_P(expr)->get_properties_for == NULL in ZEND_CAST_SPEC_VAR_HANDLER()
22167 && Z_OBJ_HT_P(expr)->get_properties == zend_std_get_properties) { in ZEND_CAST_SPEC_VAR_HANDLER()
22169 ZVAL_ARR(result, zend_std_build_object_properties_array(Z_OBJ_P(expr))); in ZEND_CAST_SPEC_VAR_HANDLER()
22171 HashTable *obj_ht = zend_get_properties_for(expr, ZEND_PROP_PURPOSE_ARRAY_CAST); in ZEND_CAST_SPEC_VAR_HANDLER()
22175 (Z_OBJCE_P(expr)->default_properties_count || in ZEND_CAST_SPEC_VAR_HANDLER()
22176 Z_OBJ_P(expr)->handlers != &std_object_handlers || in ZEND_CAST_SPEC_VAR_HANDLER()
22186 if (Z_TYPE_P(expr) == IS_ARRAY) { in ZEND_CAST_SPEC_VAR_HANDLER()
22187 ht = zend_symtable_to_proptable(Z_ARR_P(expr)); in ZEND_CAST_SPEC_VAR_HANDLER()
22193 } else if (Z_TYPE_P(expr) != IS_NULL) { in ZEND_CAST_SPEC_VAR_HANDLER()
22195 expr = zend_hash_add_new(ht, ZSTR_KNOWN(ZEND_STR_SCALAR), expr); in ZEND_CAST_SPEC_VAR_HANDLER()
22197 if (UNEXPECTED(Z_OPT_REFCOUNTED_P(expr))) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_VAR_HANDLER()
22199 if (Z_OPT_REFCOUNTED_P(expr)) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_VAR_HANDLER()
39768 zval *expr; in ZEND_CAST_SPEC_CV_HANDLER() local
39773 expr = _get_zval_ptr_cv_BP_VAR_R(opline->op1.var EXECUTE_DATA_CC); in ZEND_CAST_SPEC_CV_HANDLER()
39777 ZVAL_LONG(result, zval_get_long(expr)); in ZEND_CAST_SPEC_CV_HANDLER()
39780 ZVAL_DOUBLE(result, zval_get_double(expr)); in ZEND_CAST_SPEC_CV_HANDLER()
39783 ZVAL_STR(result, zval_get_string(expr)); in ZEND_CAST_SPEC_CV_HANDLER()
39788 ZVAL_DEREF(expr); in ZEND_CAST_SPEC_CV_HANDLER()
39791 if (Z_TYPE_P(expr) == opline->extended_value) { in ZEND_CAST_SPEC_CV_HANDLER()
39792 ZVAL_COPY_VALUE(result, expr); in ZEND_CAST_SPEC_CV_HANDLER()
39803 if (IS_CV == IS_CONST || Z_TYPE_P(expr) != IS_OBJECT || Z_OBJCE_P(expr) == zend_ce_closure) { in ZEND_CAST_SPEC_CV_HANDLER()
39804 if (Z_TYPE_P(expr) != IS_NULL) { in ZEND_CAST_SPEC_CV_HANDLER()
39806 expr = zend_hash_index_add_new(Z_ARRVAL_P(result), 0, expr); in ZEND_CAST_SPEC_CV_HANDLER()
39808 if (UNEXPECTED(Z_OPT_REFCOUNTED_P(expr))) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_CV_HANDLER()
39810 if (Z_OPT_REFCOUNTED_P(expr)) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_CV_HANDLER()
39815 } else if (Z_OBJ_P(expr)->properties == NULL in ZEND_CAST_SPEC_CV_HANDLER()
39816 && Z_OBJ_HT_P(expr)->get_properties_for == NULL in ZEND_CAST_SPEC_CV_HANDLER()
39817 && Z_OBJ_HT_P(expr)->get_properties == zend_std_get_properties) { in ZEND_CAST_SPEC_CV_HANDLER()
39819 ZVAL_ARR(result, zend_std_build_object_properties_array(Z_OBJ_P(expr))); in ZEND_CAST_SPEC_CV_HANDLER()
39821 HashTable *obj_ht = zend_get_properties_for(expr, ZEND_PROP_PURPOSE_ARRAY_CAST); in ZEND_CAST_SPEC_CV_HANDLER()
39825 (Z_OBJCE_P(expr)->default_properties_count || in ZEND_CAST_SPEC_CV_HANDLER()
39826 Z_OBJ_P(expr)->handlers != &std_object_handlers || in ZEND_CAST_SPEC_CV_HANDLER()
39836 if (Z_TYPE_P(expr) == IS_ARRAY) { in ZEND_CAST_SPEC_CV_HANDLER()
39837 ht = zend_symtable_to_proptable(Z_ARR_P(expr)); in ZEND_CAST_SPEC_CV_HANDLER()
39843 } else if (Z_TYPE_P(expr) != IS_NULL) { in ZEND_CAST_SPEC_CV_HANDLER()
39845 expr = zend_hash_add_new(ht, ZSTR_KNOWN(ZEND_STR_SCALAR), expr); in ZEND_CAST_SPEC_CV_HANDLER()
39847 if (UNEXPECTED(Z_OPT_REFCOUNTED_P(expr))) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_CV_HANDLER()
39849 if (Z_OPT_REFCOUNTED_P(expr)) Z_ADDREF_P(expr); in ZEND_CAST_SPEC_CV_HANDLER()
44189 zval *expr; in ZEND_INSTANCEOF_SPEC_CV_CONST_HANDLER() local
44193 expr = EX_VAR(opline->op1.var); in ZEND_INSTANCEOF_SPEC_CV_CONST_HANDLER()
44196 if (Z_TYPE_P(expr) == IS_OBJECT) { in ZEND_INSTANCEOF_SPEC_CV_CONST_HANDLER()
44217 result = ce && instanceof_function(Z_OBJCE_P(expr), ce); in ZEND_INSTANCEOF_SPEC_CV_CONST_HANDLER()
44218 } else if ((IS_CV & (IS_VAR|IS_CV)) && Z_TYPE_P(expr) == IS_REFERENCE) { in ZEND_INSTANCEOF_SPEC_CV_CONST_HANDLER()
44219 expr = Z_REFVAL_P(expr); in ZEND_INSTANCEOF_SPEC_CV_CONST_HANDLER()
44222 if (IS_CV == IS_CV && UNEXPECTED(Z_TYPE_P(expr) == IS_UNDEF)) { in ZEND_INSTANCEOF_SPEC_CV_CONST_HANDLER()
48171 zval *expr; in ZEND_INSTANCEOF_SPEC_CV_VAR_HANDLER() local
48175 expr = EX_VAR(opline->op1.var); in ZEND_INSTANCEOF_SPEC_CV_VAR_HANDLER()
48178 if (Z_TYPE_P(expr) == IS_OBJECT) { in ZEND_INSTANCEOF_SPEC_CV_VAR_HANDLER()
48199 result = ce && instanceof_function(Z_OBJCE_P(expr), ce); in ZEND_INSTANCEOF_SPEC_CV_VAR_HANDLER()
48200 } else if ((IS_CV & (IS_VAR|IS_CV)) && Z_TYPE_P(expr) == IS_REFERENCE) { in ZEND_INSTANCEOF_SPEC_CV_VAR_HANDLER()
48201 expr = Z_REFVAL_P(expr); in ZEND_INSTANCEOF_SPEC_CV_VAR_HANDLER()
48204 if (IS_CV == IS_CV && UNEXPECTED(Z_TYPE_P(expr) == IS_UNDEF)) { in ZEND_INSTANCEOF_SPEC_CV_VAR_HANDLER()
49646 zval *expr; in ZEND_INSTANCEOF_SPEC_CV_UNUSED_HANDLER() local
49650 expr = EX_VAR(opline->op1.var); in ZEND_INSTANCEOF_SPEC_CV_UNUSED_HANDLER()
49653 if (Z_TYPE_P(expr) == IS_OBJECT) { in ZEND_INSTANCEOF_SPEC_CV_UNUSED_HANDLER()
49674 result = ce && instanceof_function(Z_OBJCE_P(expr), ce); in ZEND_INSTANCEOF_SPEC_CV_UNUSED_HANDLER()
49675 } else if ((IS_CV & (IS_VAR|IS_CV)) && Z_TYPE_P(expr) == IS_REFERENCE) { in ZEND_INSTANCEOF_SPEC_CV_UNUSED_HANDLER()
49676 expr = Z_REFVAL_P(expr); in ZEND_INSTANCEOF_SPEC_CV_UNUSED_HANDLER()
49679 if (IS_CV == IS_CV && UNEXPECTED(Z_TYPE_P(expr) == IS_UNDEF)) { in ZEND_INSTANCEOF_SPEC_CV_UNUSED_HANDLER()