Home
last modified time | relevance | path

Searched refs:ZSTR_VAL (Results 1 – 25 of 258) sorted by path

1234567891011

/PHP-7.4/Zend/
H A Dzend.c100 EG(error_reporting) = atoi(ZSTR_VAL(new_value)); in ZEND_INI_MH()
136 …return zend_multibyte_set_script_encoding_by_string(new_value ? ZSTR_VAL(new_value) : NULL, new_va… in ZEND_INI_MH()
153 val = zend_atol(ZSTR_VAL(new_value), ZSTR_LEN(new_value)); in ZEND_INI_MH()
348 ZEND_WRITE(ZSTR_VAL(string_key), ZSTR_LEN(string_key)); in print_flat_hash()
376 zend_write(ZSTR_VAL(str), len); in zend_print_zval()
406 zend_printf("%s Object (", ZSTR_VAL(class_name)); in zend_print_flat_zval_r()
455 smart_str_appends(buf, ZSTR_VAL(class_name)); in zend_print_zval_r_to_buf()
507 zend_write(ZSTR_VAL(str), ZSTR_LEN(str)); in zend_print_zval_r()
1448 *filename = ZSTR_VAL(zend_get_compiled_filename()); in get_filename_lineno()
1711 cur_filename = ZSTR_VAL(zend_get_compiled_filename()); in zend_make_compiled_string_description()
H A Dzend_API.c375 ZSTR_VAL(ce_base->name), Z_STRVAL_P(arg)); in zend_parse_arg_class()
755 return ZSTR_VAL(ce->name); in zend_parse_arg_impl()
1120ZSTR_VAL(Z_OBJCE_P(this_ptr)->name), get_active_function_name(), ZSTR_VAL(ce->name), get_active_fu… in zend_parse_method_parameters()
1153ZSTR_VAL(ce->name), get_active_function_name(), ZSTR_VAL(Z_OBJCE_P(this_ptr)->name), get_active_fu… in zend_parse_method_parameters_ex()
1331 if (ZSTR_VAL(key)[0] == '\0') { in object_properties_load()
2327 } else if (ZSTR_VAL(lowercase_name)[0] != '_' || ZSTR_VAL(lowercase_name)[1] != '_') { in zend_register_functions()
2917 zend_str_tolower_copy(ZSTR_VAL(lcname), ZSTR_VAL(name), name_len); in zend_is_callable_check_class()
3266 char *ptr = ZSTR_VAL(callable_name); in zend_create_method_string()
3317 memcpy(ZSTR_VAL(callable_name), ZSTR_VAL(ce->name), ZSTR_LEN(ce->name)); in zend_get_callable_name_ex()
4038 "Cannot redefine class constant %s::%s", ZSTR_VAL(ce->name), ZSTR_VAL(name)); in zend_declare_class_constant_ex()
[all …]
H A Dzend_API.h566 …if (ZSTR_VAL(str)[ZSTR_LEN(str)] != '\0') { zend_error(E_WARNING, "String is not zero-terminated (…
568 …if (ZSTR_VAL(str)[ZSTR_LEN(str)] != '\0') { zend_error(E_WARNING, "String is not zero-terminated (…
1414 _error = ZSTR_VAL((_ce)->name); \
1632 *dest = ZSTR_VAL(str); in zend_parse_arg_string()
1641 (*dest && UNEXPECTED(CHECK_NULL_PATH(ZSTR_VAL(*dest), ZSTR_LEN(*dest))))) { in zend_parse_arg_path_str()
1658 *dest = ZSTR_VAL(str); in zend_parse_arg_path()
H A Dzend_ast.c931 unsigned char c = ZSTR_VAL(s)[i]; in zend_ast_export_str()
946 unsigned char c = ZSTR_VAL(s)[i]; in zend_ast_export_qstr()
1264 smart_str_appendl(str, ZSTR_VAL(key), ZSTR_LEN(key)); in zend_ast_export_zval()
1374 smart_str_appendl(str, ZSTR_VAL(name), ZSTR_LEN(name)); in zend_ast_export_ex()
1416 smart_str_appendl(str, ZSTR_VAL(decl->name), ZSTR_LEN(decl->name)); in zend_ast_export_ex()
1463 smart_str_appendl(str, ZSTR_VAL(decl->name), ZSTR_LEN(decl->name)); in zend_ast_export_ex()
H A Dzend_builtin_functions.c608 RETURN_LONG(zend_binary_strcmp(ZSTR_VAL(s1), ZSTR_LEN(s1), ZSTR_VAL(s2), ZSTR_LEN(s2))); in ZEND_FUNCTION()
630 RETURN_LONG(zend_binary_strncmp(ZSTR_VAL(s1), ZSTR_LEN(s1), ZSTR_VAL(s2), ZSTR_LEN(s2), len)); in ZEND_FUNCTION()
645 RETURN_LONG(zend_binary_strcasecmp(ZSTR_VAL(s1), ZSTR_LEN(s1), ZSTR_VAL(s2), ZSTR_LEN(s2))); in ZEND_FUNCTION()
667 RETURN_LONG(zend_binary_strncasecmp(ZSTR_VAL(s1), ZSTR_LEN(s1), ZSTR_VAL(s2), ZSTR_LEN(s2), len)); in ZEND_FUNCTION()
868 if (zend_memnstr(ZSTR_VAL(name), "::", sizeof("::") - 1, ZSTR_VAL(name) + ZSTR_LEN(name))) { in ZEND_FUNCTION()
1287 ret = memcmp(ZSTR_VAL(lcname), ZSTR_VAL(key), ZSTR_LEN(key)) == 0; in same_name()
1462 if (ZSTR_VAL(name)[0] == '\\') { in class_exists_impl()
1465 zend_str_tolower_copy(ZSTR_VAL(lcname), ZSTR_VAL(name) + 1, ZSTR_LEN(name) - 1); in class_exists_impl()
1520 if (ZSTR_VAL(name)[0] == '\\') { in ZEND_FUNCTION()
1523 zend_str_tolower_copy(ZSTR_VAL(lcname), ZSTR_VAL(name) + 1, ZSTR_LEN(name) - 1); in ZEND_FUNCTION()
[all …]
H A Dzend_closures.c80 ZSTR_VAL(func->common.scope->name), in zend_valid_closure_binding()
81 ZSTR_VAL(func->common.function_name), in zend_valid_closure_binding()
82 ZSTR_VAL(Z_OBJCE_P(newthis)->name)); in zend_valid_closure_binding()
102 ZSTR_VAL(scope->name)); in zend_valid_closure_binding()
225 zend_error(E_WARNING, "Class '%s' not found", ZSTR_VAL(class_name)); in ZEND_METHOD()
579 ZSTR_VAL(arg_info->name)); in zend_closure_get_debug_info()
H A Dzend_compile.c5385 ZSTR_VAL(name)); in zend_compile_params()
5734 "%s::%s() must be omitted", ZSTR_VAL(ce->name), ZSTR_VAL(name)); in zend_begin_method_decl()
5753 ZSTR_VAL(ce->name), ZSTR_VAL(name)); in zend_begin_method_decl()
5764 ZSTR_VAL(ce->name), ZSTR_VAL(name)); in zend_begin_method_decl()
5768 if (ZSTR_VAL(lcname)[0] != '_' || ZSTR_VAL(lcname)[1] != '_') { in zend_begin_method_decl()
6132 ZSTR_VAL(ce->name), ZSTR_VAL(name)); in zend_compile_prop_decl()
6137 ZSTR_VAL(ce->name), ZSTR_VAL(name)); in zend_compile_prop_decl()
6312 "%s is used in %s", ZSTR_VAL(name), ZSTR_VAL(ce->name)); in zend_compile_use_trait()
6516 ZSTR_VAL(ce->name), ZSTR_VAL(ce->clone->common.function_name)); in zend_compile_class_decl()
6520 ZSTR_VAL(ce->name), ZSTR_VAL(ce->clone->common.function_name)); in zend_compile_class_decl()
[all …]
H A Dzend_compile.h481 #define ZEND_FN_SCOPE_NAME(function) ((function) && (function)->common.scope ? ZSTR_VAL((function)…
H A Dzend_constants.c282 zend_str_tolower_copy(lcname, ZSTR_VAL(name), ZSTR_LEN(name)); in zend_get_constant_impl()
290 c = zend_get_special_constant(ZSTR_VAL(name), ZSTR_LEN(name)); in zend_get_constant_impl()
309 size_t shortname_offset = ns_sep - ZSTR_VAL(c->name) + 1; in is_access_deprecated()
313 ZSTR_VAL(c->name) + shortname_offset, in is_access_deprecated()
327 const char *name = ZSTR_VAL(cname); in zend_get_constant_ex()
375 …zend_throw_error(NULL, "Undefined class constant '%s::%s'", ZSTR_VAL(class_name), ZSTR_VAL(constan… in zend_get_constant_ex()
382 …t %s::%s", zend_visibility_string(Z_ACCESS_FLAGS(c->value)), ZSTR_VAL(class_name), ZSTR_VAL(consta… in zend_get_constant_ex()
394 …r(NULL, "Cannot declare self-referencing constant '%s::%s'", ZSTR_VAL(class_name), ZSTR_VAL(consta… in zend_get_constant_ex()
469 ZSTR_VAL(c->name)); in zend_get_constant_ex()
504 char *slash = strrchr(ZSTR_VAL(c->name), '\\'); in zend_register_constant()
[all …]
H A Dzend_dtrace.c38 return ZSTR_VAL(ex->func->op_array.filename); in dtrace_get_executed_filename()
47 DTRACE_COMPILE_FILE_ENTRY(ZSTR_VAL(file_handle->opened_path), (char *)file_handle->filename); in dtrace_compile_file()
49 DTRACE_COMPILE_FILE_RETURN(ZSTR_VAL(file_handle->opened_path), (char *)file_handle->filename); in dtrace_compile_file()
H A Dzend_exceptions.c53 ZSTR_VAL(class_type->name), in zend_implement_throwable()
54 ZSTR_VAL(interface->name), in zend_implement_throwable()
55 ZSTR_VAL(zend_ce_exception->name), in zend_implement_throwable()
56 ZSTR_VAL(zend_ce_error->name)); in zend_implement_throwable()
498 ZSTR_VAL(key)); \
554 smart_str_appends(str, ZSTR_VAL(class_name)); in _build_trace_args()
719 ZSTR_VAL(Z_OBJCE_P(exception)->name), ZSTR_VAL(message), ZSTR_VAL(file), line, in ZEND_METHOD()
725 ZSTR_VAL(Z_OBJCE_P(exception)->name), ZSTR_VAL(file), line, in ZEND_METHOD()
998 ZSTR_VAL(file), line, "%s", ZSTR_VAL(message)); in zend_exception_error()
1029 ZSTR_VAL(Z_OBJCE(zv)->name), ZSTR_VAL(ce_exception->name)); in zend_exception_error()
[all …]
H A Dzend_execute.c639 ZSTR_VAL(prop->ce->name), in zend_throw_access_uninit_prop_by_ref_error()
906 ZSTR_VAL(info->ce->name), in zend_verify_property_type_error()
913 ZSTR_VAL(info->ce->name), in zend_verify_property_type_error()
1555 ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(fbc->common.function_name)); in zend_abstract_method()
1673 ZSTR_VAL(prop->ce->name), in zend_throw_incdec_prop_error()
1679 ZSTR_VAL(prop->ce->name), in zend_throw_incdec_prop_error()
2033 ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(fbc->common.function_name)); in zend_non_static_method_call()
2038 ZSTR_VAL(fbc->common.scope->name), ZSTR_VAL(fbc->common.function_name)); in zend_non_static_method_call()
3116 ZSTR_VAL(prop1->ce->name), in zend_throw_ref_type_error_type()
3130 ZSTR_VAL(prop->ce->name), in zend_throw_ref_type_error_zval()
[all …]
H A Dzend_execute_API.c455 return ce ? ZSTR_VAL(ce->name) : ""; in get_active_class_name()
479 return ZSTR_VAL(function_name); in get_active_function_name()
486 return ZSTR_VAL(func->common.function_name); in get_active_function_name()
502 return ZSTR_VAL(ex->func->op_array.filename); in zend_get_executed_filename()
577 char *actual = ZSTR_VAL(name); in zend_use_undefined_constant()
583 actual_len -= (actual - ZSTR_VAL(name)); in zend_use_undefined_constant()
746 ZSTR_VAL(func->common.function_name)); in zend_call_function()
774 ZSTR_VAL(func->common.function_name)); in zend_call_function()
911 if (ZSTR_VAL(name)[0] == '\\') { in zend_lookup_class_ex()
913 zend_str_tolower_copy(ZSTR_VAL(lc_name), ZSTR_VAL(name) + 1, ZSTR_LEN(name) - 1); in zend_lookup_class_ex()
[all …]
H A Dzend_hash.c673 && !memcmp(ZSTR_VAL(p->key), str, len)) { in zend_hash_str_find_bucket()
1436 && !memcmp(ZSTR_VAL(p->key), str, len)) { in zend_hash_str_del_ind()
1480 && !memcmp(ZSTR_VAL(p->key), str, len)) { in zend_hash_str_del()
2569 result = memcmp(ZSTR_VAL(p1->key), ZSTR_VAL(p2->key), ZSTR_LEN(p1->key)); in zend_hash_compare_impl()
H A Dzend_hash.h356 ZEND_HANDLE_NUMERIC_STR(ZSTR_VAL(key), ZSTR_LEN(key), idx)
H A Dzend_inheritance.c182 ZSTR_VAL(parent->name), ZSTR_VAL(parent->constructor->common.function_name), in do_inherit_parent_constructor()
183 ZSTR_VAL(ce->name), ZSTR_VAL(ce->constructor->common.function_name)); in do_inherit_parent_constructor()
701 ZSTR_VAL(child_prototype), ZSTR_VAL(parent_prototype), ZSTR_VAL(unresolved_class)); in emit_incompatible_method_error()
705 ZSTR_VAL(child_prototype), error_verb, ZSTR_VAL(parent_prototype)); in emit_incompatible_method_error()
943 ZSTR_VAL(child->ce->name), in emit_incompatible_property_error()
993 ZSTR_VAL(ce->name), in do_inherit_property()
994 ZSTR_VAL(key), in do_inherit_property()
1544 if (!memcmp(ZSTR_VAL(mname), ZSTR_VAL(lowercase_name), ZSTR_LEN(mname))) { in zend_add_magic_methods()
1607 ZSTR_VAL(fn->common.scope->name), ZSTR_VAL(fn->common.function_name), in zend_add_trait_method()
2015 ZSTR_VAL(prop_name), in zend_do_traits_property_binding()
[all …]
H A Dzend_ini.c194 …return zend_binary_strcasecmp(ZSTR_VAL(f->key), ZSTR_LEN(f->key), ZSTR_VAL(s->key), ZSTR_LEN(s->ke… in ini_key_compare()
504 return atoi(ZSTR_VAL(str)) != 0; in zend_ini_parse_bool()
540 value = ZSTR_VAL(ini_entry->orig_value); in ZEND_INI_DISP()
542 value = ZSTR_VAL(ini_entry->value); in ZEND_INI_DISP()
567 value = ZSTR_VAL(ini_entry->orig_value); in ZEND_INI_DISP()
569 value = ZSTR_VAL(ini_entry->value); in ZEND_INI_DISP()
616 *p = zend_atol(ZSTR_VAL(new_value), ZSTR_LEN(new_value)); in ZEND_INI_MH()
657 *p = zend_strtod(ZSTR_VAL(new_value), NULL); in ZEND_INI_MH()
675 *p = new_value ? ZSTR_VAL(new_value) : NULL; in ZEND_INI_MH()
691 if (new_value && !ZSTR_VAL(new_value)[0]) { in ZEND_INI_MH()
[all …]
H A Dzend_ini_parser.y126 ZVAL_PSTRINGL(op1, ZSTR_VAL(str), ZSTR_LEN(str)); in zend_ini_add_string()
H A Dzend_interfaces.c273 …() must be traversable or implement interface Iterator", ce ? ZSTR_VAL(ce->name) : ZSTR_VAL(Z_OBJC… in zend_user_it_get_new_iterator()
303 ZSTR_VAL(class_type->name), in zend_implement_traversable()
304 ZSTR_VAL(zend_ce_traversable->name), in zend_implement_traversable()
305 ZSTR_VAL(zend_ce_iterator->name), in zend_implement_traversable()
306 ZSTR_VAL(zend_ce_aggregate->name)); in zend_implement_traversable()
329 ZSTR_VAL(class_type->name), in zend_implement_aggregate()
330 ZSTR_VAL(interface->name), in zend_implement_aggregate()
331 ZSTR_VAL(zend_ce_iterator->name)); in zend_implement_aggregate()
384 ZSTR_VAL(class_type->name), in zend_implement_iterator()
385 ZSTR_VAL(interface->name), in zend_implement_iterator()
[all …]
H A Dzend_language_scanner.l2757 if (UNEXPECTED(zend_scan_escape_string(zendlval, ZSTR_VAL(copy), ZSTR_LEN(copy), 0) != SUCCESS)) {
H A Dzend_object_handlers.c565 if (ZSTR_VAL(prop_info_name)[0] == 0) { in zend_check_property_access()
582 } else if (strcmp(ZSTR_VAL(prop_info_name)+1, ZSTR_VAL(property_info->name)+1)) { in zend_check_property_access()
797 ZSTR_VAL(prop_info->ce->name), in zend_std_read_property()
798 ZSTR_VAL(name)); in zend_std_read_property()
800 zend_error(E_NOTICE,"Undefined property: %s::$%s", ZSTR_VAL(zobj->ce->name), ZSTR_VAL(name)); in zend_std_read_property()
1068 ZSTR_VAL(prop_info->ce->name), in zend_std_get_property_ptr_ptr()
1069 ZSTR_VAL(name)); in zend_std_get_property_ptr_ptr()
1073 zend_error(E_NOTICE, "Undefined property: %s::$%s", ZSTR_VAL(zobj->ce->name), ZSTR_VAL(name)); in zend_std_get_property_ptr_ptr()
1103 zend_error(E_NOTICE, "Undefined property: %s::$%s", ZSTR_VAL(zobj->ce->name), ZSTR_VAL(name)); in zend_std_get_property_ptr_ptr()
1338 zend_str_tolower_copy(ZSTR_VAL(lc_method_name), ZSTR_VAL(method_name), ZSTR_LEN(method_name)); in zend_std_get_method()
[all …]
H A Dzend_objects.c115 ZSTR_VAL(object->ce->name), in zend_objects_destroy_object()
116 scope ? ZSTR_VAL(scope->name) : ""); in zend_objects_destroy_object()
122 ZSTR_VAL(object->ce->name)); in zend_objects_destroy_object()
134 ZSTR_VAL(object->ce->name), in zend_objects_destroy_object()
135 scope ? ZSTR_VAL(scope->name) : ""); in zend_objects_destroy_object()
141 ZSTR_VAL(object->ce->name)); in zend_objects_destroy_object()
H A Dzend_operators.c1622 ZSTR_VAL(str)[i] = 0; in bitwise_and_function()
1700 ZSTR_VAL(str)[i] = 0; in bitwise_xor_function()
1929 ret = zend_binary_strcasecmp_l(ZSTR_VAL(str1), ZSTR_LEN(str1), ZSTR_VAL(str2), ZSTR_LEN(str1)); in string_compare_function_ex()
1931 ret = zend_binary_strcmp(ZSTR_VAL(str1), ZSTR_LEN(str1), ZSTR_VAL(str2), ZSTR_LEN(str2)); in string_compare_function_ex()
1953 int ret = zend_binary_strcmp(ZSTR_VAL(str1), ZSTR_LEN(str1), ZSTR_VAL(str2), ZSTR_LEN(str2)); in string_compare_function()
1989 int ret = strcoll(ZSTR_VAL(str1), ZSTR_VAL(str2)); in string_locale_compare_function()
2440 ZSTR_VAL(t)[0] = '1'; in increment_string()
2443 ZSTR_VAL(t)[0] = 'A'; in increment_string()
2446 ZSTR_VAL(t)[0] = 'a'; in increment_string()
2704 memcpy(ZSTR_VAL(res), ZSTR_VAL(str), p - (unsigned char*)ZSTR_VAL(str)); in zend_string_tolower_ex()
[all …]
H A Dzend_operators.h836 } else if (ZSTR_VAL(s1)[0] > '9' || ZSTR_VAL(s2)[0] > '9') { in zend_fast_equal_strings()
H A Dzend_smart_str.c83 res = &ZSTR_VAL(str->s)[ZSTR_LEN(str->s)]; in smart_str_append_escaped()

Completed in 276 milliseconds

1234567891011