Lines Matching refs:name_length
227 PHPDBG_API const phpdbg_color_t *phpdbg_get_color(const char *name, size_t name_length) /* {{{ */ in phpdbg_get_color() argument
232 if (name_length == color->name_length && in phpdbg_get_color()
233 memcmp(name, color->name, name_length) == SUCCESS) { in phpdbg_get_color()
234 phpdbg_debug("phpdbg_get_color(%s, %lu): %s", name, name_length, color->code); in phpdbg_get_color()
240 phpdbg_debug("phpdbg_get_color(%s, %lu): failed", name, name_length); in phpdbg_get_color()
250 PHPDBG_API void phpdbg_set_color_ex(int element, const char *name, size_t name_length) /* {{{ */ in phpdbg_set_color_ex() argument
252 const phpdbg_color_t *color = phpdbg_get_color(name, name_length); in phpdbg_set_color_ex()
268 if (len == element->name_length) { in phpdbg_get_element()
398 int phpdbg_safe_class_lookup(const char *name, int name_length, zend_class_entry **ce) { in phpdbg_safe_class_lookup() argument
403 if (name == NULL || !name_length) { in phpdbg_safe_class_lookup()
407 lc_free = lc_name = emalloc(name_length + 1); in phpdbg_safe_class_lookup()
408 zend_str_tolower_copy(lc_name, name, name_length); in phpdbg_safe_class_lookup()
409 lc_length = name_length + 1; in phpdbg_safe_class_lookup()
419 phpdbg_error("Could not fetch class %.*s, invalid data source", name_length, name); in phpdbg_safe_class_lookup()
424 zend_string *str_name = zend_string_init(name, name_length, 0); in phpdbg_safe_class_lookup()