/php-src/ext/dom/ |
H A D | html5_serializer.c | 142 size_t name_length = strlen((const char *) parent->name); in dom_html5_serialize_text_node() local 148 || dom_local_name_compare_ex(parent, "xmp", strlen("xmp"), name_length) in dom_html5_serialize_text_node() 233 size_t name_length = strlen((const char *) node->name); in dom_html5_serializes_as_void() local 235 dom_local_name_compare_ex(node, "area", strlen("area"), name_length) in dom_html5_serializes_as_void() 236 || dom_local_name_compare_ex(node, "base", strlen("base"), name_length) in dom_html5_serializes_as_void() 237 || dom_local_name_compare_ex(node, "br", strlen("br"), name_length) in dom_html5_serializes_as_void() 238 || dom_local_name_compare_ex(node, "col", strlen("col"), name_length) in dom_html5_serializes_as_void() 240 || dom_local_name_compare_ex(node, "hr", strlen("hr"), name_length) in dom_html5_serializes_as_void() 241 || dom_local_name_compare_ex(node, "img", strlen("img"), name_length) in dom_html5_serializes_as_void() 243 || dom_local_name_compare_ex(node, "link", strlen("link"), name_length) in dom_html5_serializes_as_void() [all …]
|
H A D | serialize_common.h | 23 …_local_name_compare_ex(const xmlNode *node, const char *tag, size_t tag_length, size_t name_length) in dom_local_name_compare_ex() argument 25 …return name_length == tag_length && zend_binary_strcmp((const char *) node->name, name_length, tag… in dom_local_name_compare_ex()
|
H A D | xml_serializer.c | 1097 size_t name_length = strlen((const char *) element->name); in dom_xml_serialize_element_node() local 1098 if (dom_local_name_compare_ex(element, "area", strlen("area"), name_length) in dom_xml_serialize_element_node() 1099 || dom_local_name_compare_ex(element, "base", strlen("base"), name_length) in dom_xml_serialize_element_node() 1102 || dom_local_name_compare_ex(element, "br", strlen("br"), name_length) in dom_xml_serialize_element_node() 1103 || dom_local_name_compare_ex(element, "col", strlen("col"), name_length) in dom_xml_serialize_element_node() 1104 || dom_local_name_compare_ex(element, "embed", strlen("embed"), name_length) in dom_xml_serialize_element_node() 1106 || dom_local_name_compare_ex(element, "hr", strlen("hr"), name_length) in dom_xml_serialize_element_node() 1107 || dom_local_name_compare_ex(element, "img", strlen("img"), name_length) in dom_xml_serialize_element_node() 1110 || dom_local_name_compare_ex(element, "link", strlen("link"), name_length) in dom_xml_serialize_element_node() 1112 || dom_local_name_compare_ex(element, "meta", strlen("meta"), name_length) in dom_xml_serialize_element_node() [all …]
|
/php-src/main/ |
H A D | php_ini_builder.c | 31 …i_builder_unquoted(struct php_ini_builder *b, const char *name, size_t name_length, const char *va… in php_ini_builder_unquoted() argument 33 php_ini_builder_realloc(b, name_length + 1 + value_length + 1); in php_ini_builder_unquoted() 35 memcpy(b->value + b->length, name, name_length); in php_ini_builder_unquoted() 36 b->length += name_length; in php_ini_builder_unquoted() 46 PHPAPI void php_ini_builder_quoted(struct php_ini_builder *b, const char *name, size_t name_length,… in php_ini_builder_quoted() argument 48 php_ini_builder_realloc(b, name_length + 2 + value_length + 2); in php_ini_builder_quoted() 50 memcpy(b->value + b->length, name, name_length); in php_ini_builder_quoted() 51 b->length += name_length; in php_ini_builder_quoted()
|
H A D | php_ini_builder.h | 81 …i_builder_unquoted(struct php_ini_builder *b, const char *name, size_t name_length, const char *va… 86 PHPAPI void php_ini_builder_quoted(struct php_ini_builder *b, const char *name, size_t name_length,…
|
H A D | php_ini.h | 28 PHPAPI zval *cfg_get_entry(const char *name, size_t name_length);
|
H A D | php_ini.c | 892 PHPAPI zval *cfg_get_entry(const char *name, size_t name_length) argument 894 return zend_hash_str_find(&configuration_hash, name, name_length);
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_utils.h | 54 size_t name_length; member 60 size_t name_length; member 64 PHPDBG_API const phpdbg_color_t *phpdbg_get_color(const char *name, size_t name_length); 66 PHPDBG_API void phpdbg_set_color_ex(int element, const char *name, size_t name_length); 82 int phpdbg_safe_class_lookup(const char *name, int name_length, zend_class_entry **ce);
|
H A D | phpdbg_utils.c | 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() 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() 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() [all …]
|
/php-src/ext/mbstring/libmbfl/mbfl/ |
H A D | mbfl_encoding.c | 322 size_t name_length = strlen((*encoding)->name); in mbfl_name2encoding_ex() local 323 if (!(name_length <= NAME_HASH_MAX_NAME_LENGTH && name_length >= NAME_HASH_MIN_NAME_LENGTH)) { in mbfl_name2encoding_ex() 324 …fprintf(stderr, "name length is not satisfying bound check: %zu %s\n", name_length, (*encoding)->n… in mbfl_name2encoding_ex() 327 unsigned int key = mbfl_name2encoding_perfect_hash((*encoding)->name, name_length); in mbfl_name2encoding_ex()
|
/php-src/ext/snmp/ |
H A D | snmp.c | 84 php_snmp_add_property((a), (b)[i].name, (b)[i].name_length, \ 401 rootlen = objid_query->vars[0].name_length; in php_snmp_internal() 481 snprint_objid(buf, sizeof(buf), vars->name, vars->name_length); in php_snmp_internal() 513 ….name_length == vars->name_length && snmp_oid_compare(objid_query->vars[count].name, objid_query->… in php_snmp_internal() 530 while(count < vars->name_length){ in php_snmp_internal() 549 …ompare(objid_query->vars[0].name, objid_query->vars[0].name_length, vars->name, vars->name_length)… in php_snmp_internal() 555 objid_query->vars[0].name_length = vars->name_length; in php_snmp_internal() 760 objid_query->vars[0].name_length = MAX_NAME_LEN; in php_snmp_parse_oid() 773 objid_query->vars[objid_query->offset].name_length = MAX_OID_LEN; in php_snmp_parse_oid() 1670 p.name_length = name_length; in php_snmp_add_property() [all …]
|
H A D | php_snmp.h | 72 size_t name_length; member 82 size_t name_length; member
|
/php-src/Zend/ |
H A D | zend_ini.h | 43 uint16_t name_length; member 88 ZEND_API zend_long zend_ini_long(const char *name, size_t name_length, int orig); 89 ZEND_API double zend_ini_double(const char *name, size_t name_length, int orig); 90 ZEND_API char *zend_ini_string(const char *name, size_t name_length, int orig); 91 ZEND_API char *zend_ini_string_ex(const char *name, size_t name_length, int orig, bool *exists); 92 ZEND_API zend_string *zend_ini_str(const char *name, size_t name_length, bool orig); 93 ZEND_API zend_string *zend_ini_str_ex(const char *name, size_t name_length, bool orig, bool *exists… 143 ZEND_API zend_result zend_ini_register_displayer(const char *name, uint32_t name_length, void (*dis…
|
H A D | zend_ini.c | 228 p->name = zend_string_init_interned(ini_entry->name, ini_entry->name_length, 1); in zend_register_ini_entries_ex() 433 ini_entry = zend_hash_str_find_ptr(registered_zend_ini_directives, name, name_length); in zend_ini_register_displayer() 447 ZEND_API zend_long zend_ini_long(const char *name, size_t name_length, int orig) /* {{{ */ in zend_ini_long() argument 451 ini_entry = zend_hash_str_find_ptr(EG(ini_directives), name, name_length); in zend_ini_long() 464 ZEND_API double zend_ini_double(const char *name, size_t name_length, int orig) /* {{{ */ in zend_ini_double() argument 468 ini_entry = zend_hash_str_find_ptr(EG(ini_directives), name, name_length); in zend_ini_double() 485 ini_entry = zend_hash_str_find_ptr(EG(ini_directives), name, name_length); in zend_ini_string_ex() 505 ZEND_API char *zend_ini_string(const char *name, size_t name_length, int orig) /* {{{ */ in zend_ini_string() argument 510 return_value = zend_ini_string_ex(name, name_length, orig, &exists); in zend_ini_string() 525 ini_entry = zend_hash_str_find_ptr(EG(ini_directives), name, name_length); in zend_ini_str_ex() [all …]
|
H A D | zend_API.c | 4912 key = zend_string_init_interned(name, name_length, 1); in zend_declare_class_constant() 4914 key = zend_string_init(name, name_length, 0); in zend_declare_class_constant() 4991 property = zend_string_init(name, name_length, 0); in zend_update_property() 5004 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_null() 5015 property = zend_string_init(name, name_length, 0); in zend_unset_property() 5028 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_bool() 5037 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_long() 5046 zend_update_property(scope, object, name, name_length, &tmp); in zend_update_property_double() 5117 zend_string *key = zend_string_init(name, name_length, 0); in zend_update_static_property() 5199 str = zend_string_init(name, name_length, 0); in zend_read_property() [all …]
|
H A D | zend_API.h | 430 ZEND_API void zend_declare_property_null(zend_class_entry *ce, const char *name, size_t name_length… 439 …nd_declare_class_constant(zend_class_entry *ce, const char *name, size_t name_length, zval *value); 440 … void zend_declare_class_constant_null(zend_class_entry *ce, const char *name, size_t name_length); 441 …are_class_constant_long(zend_class_entry *ce, const char *name, size_t name_length, zend_long valu… 442 …eclare_class_constant_bool(zend_class_entry *ce, const char *name, size_t name_length, bool value); 443 …re_class_constant_double(zend_class_entry *ce, const char *name, size_t name_length, double value); 497 …_property_null(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length); 504 …unset_property(zend_class_entry *scope, zend_object *object, const char *name, size_t name_length); 507 …update_static_property(zend_class_entry *scope, const char *name, size_t name_length, zval *value); 508 …lt zend_update_static_property_null(zend_class_entry *scope, const char *name, size_t name_length); [all …]
|
/php-src/ext/dom/lexbor/lexbor/dom/interfaces/ |
H A D | attr.c | 158 size_t name_length, bool to_lowercase) in lxb_dom_attr_set_name_ns() argument 175 p = (lxb_char_t *) memchr(name, ':', name_length); in lxb_dom_attr_set_name_ns() 177 return lxb_dom_attr_set_name(attr, name, name_length, to_lowercase); in lxb_dom_attr_set_name_ns() 184 (name_length - (length + 1))); in lxb_dom_attr_set_name_ns() 192 data = lxb_dom_attr_qualified_name_append(doc->attrs, name, name_length); in lxb_dom_attr_set_name_ns()
|
/php-src/sapi/fpm/fpm/ |
H A D | fpm_php.c | 24 static int fpm_php_zend_ini_alter_master(char *name, int name_length, char *new_value, int new_valu… in fpm_php_zend_ini_alter_master() argument 29 if ((ini_entry = zend_hash_str_find_ptr(EG(ini_directives), name, name_length)) == NULL) { in fpm_php_zend_ini_alter_master()
|
/php-src/ext/mysqlnd/ |
H A D | mysqlnd_result_meta.c | 159 new_fields[i].name_length = ZSTR_LEN(new_fields[i].sname); in MYSQLND_METHOD()
|
H A D | mysqlnd_wireprotocol.c | 1267 if (EXPECTED(meta->name_length != 0)) { in php_mysqlnd_rset_field_read() 1268 meta->sname = zend_string_init_interned(meta->name, meta->name_length, 0); in php_mysqlnd_rset_field_read()
|
H A D | mysqlnd_structs.h | 89 unsigned int name_length; member
|
/php-src/ext/standard/ |
H A D | info.c | 167 static ZEND_COLD void php_print_gpcse_array(char *name, size_t name_length) in php_print_gpcse_array() argument 174 key = zend_string_init(name, name_length, 0); in php_print_gpcse_array()
|
/php-src/ext/pdo_mysql/ |
H A D | mysql_statement.c | 657 cols[i].name = zend_string_init(S->fields[i].name, S->fields[i].name_length, 0); in pdo_mysql_stmt_describe()
|