Lines Matching refs:string_key
243 zend_string *string_key = Z_STR_P(case_value); in zend_enum_build_backed_enum_table() local
244 const zval *existing_case_name = zend_hash_find(backed_enum_table, string_key); in zend_enum_build_backed_enum_table()
253 zend_hash_add_new(backed_enum_table, string_key, case_name); in zend_enum_build_backed_enum_table()
289 …_object **result, zend_class_entry *ce, zend_long long_key, zend_string *string_key, bool try_from) in zend_enum_get_case_by_value() argument
307 ZEND_ASSERT(string_key != NULL); in zend_enum_get_case_by_value()
308 case_name_zv = zend_hash_find(backed_enum_table, string_key); in zend_enum_get_case_by_value()
322 …zend_value_error("\"%s\" is not a valid backing value for enum %s", ZSTR_VAL(string_key), ZSTR_VAL… in zend_enum_get_case_by_value()
347 zend_string *string_key = NULL; in zend_enum_from_base() local
359 Z_PARAM_STR(string_key) in zend_enum_from_base()
367 Z_PARAM_STR_OR_LONG(string_key, long_key) in zend_enum_from_base()
370 if (string_key == NULL) { in zend_enum_from_base()
372 string_key = zend_long_to_str(long_key); in zend_enum_from_base()
378 if (zend_enum_get_case_by_value(&case_obj, ce, long_key, string_key, try_from) == FAILURE) { in zend_enum_from_base()
388 zend_string_release(string_key); in zend_enum_from_base()
394 zend_string_release(string_key); in zend_enum_from_base()
400 zend_string_release(string_key); in zend_enum_from_base()