Home
last modified time | relevance | path

Searched refs:name_len (Results 1 – 25 of 65) sorted by relevance

123

/PHP-7.0/Zend/
H A Dzend_constants.c235 } else if (name_len == sizeof("__COMPILER_HALT_OFFSET__")-1 && in zend_get_special_constant()
261 char *lcname = do_alloca(name_len + 1, use_heap); in zend_get_constant_str()
262 zend_str_tolower_copy(lcname, name, name_len); in zend_get_constant_str()
268 c = zend_get_special_constant(name, name_len); in zend_get_constant_str()
303 size_t name_len = ZSTR_LEN(cname); in zend_get_constant_ex() local
308 name_len -= 1; in zend_get_constant_ex()
312 if ((colon = zend_memrchr(name, ':', name_len)) && in zend_get_constant_ex()
315 size_t const_name_len = name_len - class_name_len - 2; in zend_get_constant_ex()
376 if ((colon = zend_memrchr(name, '\\', name_len)) != NULL) { in zend_get_constant_ex()
379 size_t const_name_len = name_len - prefix_len - 1; in zend_get_constant_ex()
[all …]
H A Dzend_constants.h69 ZEND_API zval *zend_get_constant_str(const char *name, size_t name_len);
71 ZEND_API void zend_register_bool_constant(const char *name, size_t name_len, zend_bool bval, int fl…
72 ZEND_API void zend_register_null_constant(const char *name, size_t name_len, int flags, int module_…
73 ZEND_API void zend_register_long_constant(const char *name, size_t name_len, zend_long lval, int fl…
74 ZEND_API void zend_register_double_constant(const char *name, size_t name_len, double dval, int fla…
75 ZEND_API void zend_register_string_constant(const char *name, size_t name_len, char *strval, int fl…
76 ZEND_API void zend_register_stringl_constant(const char *name, size_t name_len, char *strval, size_…
H A Dzend_API.c1802 size_t name_len; in zend_startup_module_ex() local
1818 name_len = strlen(dep->name); in zend_startup_module_ex()
1988 size_t name_len; in zend_register_module_ex() local
2006 name_len = strlen(dep->name); in zend_register_module_ex()
2022 name_len = strlen(module->name); in zend_register_module_ex()
2023 lcname = zend_string_alloc(name_len, 1); in zend_register_module_ex()
2059 size_t name_len; in zend_check_magic_method_implementation() local
2725 lcname = zend_string_alloc(name_len, 1); in zend_register_class_alias_ex()
2831 size_t name_len = ZSTR_LEN(name); in zend_is_callable_check_class() local
3600 size_t name_len = strlen(module_name); in zend_get_module_version() local
[all …]
/PHP-7.0/ext/phar/
H A Dstub.h21 static inline zend_string* phar_get_stub(const char *index_php, const char *web, const int name_len in phar_get_stub() argument
33 …n strpprintf(name_len + web_len + newstub_len, "%s%s%s%s%s%s%d%s%s%s", newstub0, web, newstub1_0, … in phar_get_stub()
/PHP-7.0/win32/
H A Dregistry.c90 DWORD name_len, type, value_len; in LoadDirectory() local
93 name_len = max_name+1; in LoadDirectory()
111 zend_hash_str_update(ht, name, name_len, &data); in LoadDirectory()
141 DWORD name_len; in LoadDirectory() local
146 name_len = max_key+1; in LoadDirectory()
152 memcpy(new_path+path_len+1, name, name_len+1); in LoadDirectory()
153 zend_str_tolower(new_path, path_len+name_len+1); in LoadDirectory()
154 name_len += path_len+1; in LoadDirectory()
156 memcpy(new_path, name, name_len+1); in LoadDirectory()
157 zend_str_tolower(new_path, name_len); in LoadDirectory()
[all …]
/PHP-7.0/ext/dom/
H A Delement.c330 size_t name_len; in PHP_FUNCTION() local
379 if (name_len == 0) { in PHP_FUNCTION()
437 size_t name_len; in PHP_FUNCTION() local
484 size_t name_len; in PHP_FUNCTION() local
634 size_t name_len; in PHP_FUNCTION() local
752 if (name_len == 0) { in PHP_FUNCTION()
871 size_t name_len, uri_len; in PHP_FUNCTION() local
927 size_t uri_len, name_len; in PHP_FUNCTION() local
1053 size_t uri_len, name_len; in PHP_FUNCTION() local
1083 size_t name_len; in PHP_FUNCTION() local
[all …]
H A Ddomimplementation.c96 size_t name_len = 0, publicid_len = 0, systemid_len = 0; in PHP_METHOD() local
101 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "|sss", &name, &name_len, &publicid, &publicid_len, &sy… in PHP_METHOD()
105 if (name_len == 0) { in PHP_METHOD()
162 size_t uri_len = 0, name_len = 0; in PHP_METHOD() local
167 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "|ssO", &uri, &uri_len, &name, &name_len, &node, dom_do… in PHP_METHOD()
185 if (name_len > 0) { in PHP_METHOD()
186 errorcode = dom_check_qname(name, &localname, &prefix, 1, name_len); in PHP_METHOD()
H A Dentityreference.c56 size_t name_len, name_valid; in PHP_METHOD() local
58 if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "s", &name, &name_len) == FAILURE) { in PHP_METHOD()
H A Dprocessinginstruction.c57 size_t name_len, value_len; in PHP_METHOD() local
60 …if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "s|s", &name, &name_len, &value, &value_len) == F… in PHP_METHOD()
H A Ddocument.c702 size_t name_len, value_len; in PHP_FUNCTION() local
849 size_t value_len, name_len = 0; in PHP_FUNCTION() local
885 size_t name_len; in PHP_FUNCTION() local
921 size_t name_len; in PHP_FUNCTION() local
952 size_t name_len; in PHP_FUNCTION() local
965 local = xmlCharStrndup(name, name_len); in PHP_FUNCTION()
1036 size_t uri_len = 0, name_len = 0, value_len = 0; in PHP_FUNCTION() local
1048 errorcode = dom_check_qname(name, &localname, &prefix, uri_len, name_len); in PHP_FUNCTION()
1100 size_t uri_len = 0, name_len = 0; in PHP_FUNCTION() local
1163 size_t uri_len, name_len; in PHP_FUNCTION() local
[all …]
H A Dattr.c63 size_t name_len, value_len, name_valid; in PHP_METHOD() local
65 …if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "s|s", &name, &name_len, &value, &value_len) == F… in PHP_METHOD()
/PHP-7.0/ext/xmlwriter/
H A Dphp_xmlwriter.c698 size_t name_len, retval; in php_xmlwriter_string_arg() local
842 size_t name_len, prefix_len, uri_len; in PHP_FUNCTION() local
886 size_t name_len, content_len; in PHP_FUNCTION() local
983 size_t name_len, prefix_len, uri_len; in PHP_FUNCTION() local
1043 size_t name_len, content_len; in PHP_FUNCTION() local
1167 size_t name_len, content_len; in PHP_FUNCTION() local
1378 size_t name_len, pubid_len, sysid_len; in PHP_FUNCTION() local
1482 size_t name_len, content_len; in PHP_FUNCTION() local
1541 size_t name_len, content_len; in PHP_FUNCTION() local
1584 size_t name_len, retval; in PHP_FUNCTION() local
[all …]
/PHP-7.0/sapi/fpm/fpm/
H A Dfpm_env.c46 int name_len = strlen(name); in setenv() local
48 char *var = alloca(name_len + 1 + value_len + 1); in setenv()
50 memcpy(var, name, name_len); in setenv()
52 var[name_len] = '='; in setenv()
54 memcpy(var + name_len + 1, value, value_len); in setenv()
56 var[name_len + 1 + value_len] = '\0'; in setenv()
H A Dfpm_php.c84 int name_len = strlen(name); in fpm_php_apply_defines_ex() local
93 …if (fpm_php_zend_ini_alter_master(name, name_len, value, value_len, mode, PHP_INI_STAGE_ACTIVATE) … in fpm_php_apply_defines_ex()
/PHP-7.0/sapi/phpdbg/
H A Dphpdbg_cmd.c34 memcpy(&buffer[pos], command->parent->name, command->parent->name_len); in ZEND_EXTERN_MODULE_GLOBALS()
35 pos += command->parent->name_len; in ZEND_EXTERN_MODULE_GLOBALS()
40 memcpy(&buffer[pos], command->name, command->name_len); in ZEND_EXTERN_MODULE_GLOBALS()
41 pos += command->name_len; in ZEND_EXTERN_MODULE_GLOBALS()
579 if (name->len == 1 || command->name_len >= name->len) { in phpdbg_stack_resolve()
591 if ((name->len != command->name_len && command->alias) || name->len == command->name_len) { in phpdbg_stack_resolve()
597 if (name->len == command->name_len) { in phpdbg_stack_resolve()
632 list = emalloc(matched[it]->name_len + 1 + (it + 1 < matches ? sizeof(", ") - 1 : 0)); in phpdbg_stack_resolve()
634 …list = erealloc(list, (pos + matched[it]->name_len) + 1 + (it + 1 < matches ? sizeof(", ") - 1 : 0… in phpdbg_stack_resolve()
636 memcpy(&list[pos], matched[it]->name, matched[it]->name_len); in phpdbg_stack_resolve()
[all …]
/PHP-7.0/main/
H A Doutput.c520 zend_string *str = zend_string_init(name, name_len, 1); in php_output_handler_create_internal()
573 PHPAPI int php_output_handler_started(const char *name, size_t name_len) in php_output_handler_started() argument
582 …if (name_len == ZSTR_LEN(handlers[i]->name) && !memcmp(ZSTR_VAL(handlers[i]->name), name, name_len in php_output_handler_started()
616 …return zend_hash_str_update_ptr(&php_output_handler_conflicts, name, name_len, check_func) ? SUCCE… in php_output_handler_conflict_register()
631 …ULL != (rev_ptr = zend_hash_str_find_ptr(&php_output_handler_reverse_conflicts, name, name_len))) { in php_output_handler_reverse_conflict_register()
650 PHPAPI php_output_handler_alias_ctor_t php_output_handler_alias(const char *name, size_t name_len) in php_output_handler_alias() argument
652 return zend_hash_str_find_ptr(&php_output_handler_aliases, name, name_len); in php_output_handler_alias()
664 …return zend_hash_str_update_ptr(&php_output_handler_aliases, name, name_len, func) ? SUCCESS : FAI… in php_output_handler_alias_register()
1548 size_t name_len, value_len; in PHP_FUNCTION() local
1550 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss", &name, &name_len, &value, &value_len) == FAILURE)… in PHP_FUNCTION()
[all …]
H A Dphp_output.h227 PHPAPI int php_output_start_internal(const char *name, size_t name_len, php_output_handler_func_t o…
230 PHPAPI php_output_handler *php_output_handler_create_internal(const char *name, size_t name_len, ph…
234 PHPAPI int php_output_handler_started(const char *name, size_t name_len);
H A Dfastcgi.c1018 unsigned int name_len, val_len; in fcgi_get_params() local
1021 name_len = *p++; in fcgi_get_params()
1022 if (UNEXPECTED(name_len >= 128)) { in fcgi_get_params()
1024 name_len = ((name_len & 0x7f) << 24); in fcgi_get_params()
1025 name_len |= (*p++ << 16); in fcgi_get_params()
1026 name_len |= (*p++ << 8); in fcgi_get_params()
1027 name_len |= *p++; in fcgi_get_params()
1038 if (UNEXPECTED(name_len + val_len > (unsigned int) (end - p))) { in fcgi_get_params()
1042 …fcgi_hash_set(&req->env, FCGI_HASH_FUNC(p, name_len), (char*)p, name_len, (char*)p + name_len, val… in fcgi_get_params()
1043 p += name_len + val_len; in fcgi_get_params()
[all …]
/PHP-7.0/ext/xmlreader/
H A Dphp_xmlreader.c402 size_t name_len = 0; in php_xmlreader_string_arg() local
407 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &name, &name_len) == FAILURE) { in php_xmlreader_string_arg()
411 if (!name_len) { in php_xmlreader_string_arg()
592 size_t name_len = 0, ns_uri_len = 0; in PHP_METHOD() local
600 if (name_len == 0 || ns_uri_len == 0) { in PHP_METHOD()
669 size_t name_len = 0; in PHP_METHOD() local
674 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &name, &name_len) == FAILURE) { in PHP_METHOD()
678 if (name_len == 0) { in PHP_METHOD()
731 size_t name_len=0, ns_uri_len=0; in PHP_METHOD() local
740 if (name_len == 0 || ns_uri_len == 0) { in PHP_METHOD()
[all …]
/PHP-7.0/ext/standard/
H A Durl_scanner_ex.h31 PHPAPI int php_url_scanner_add_var(char *name, size_t name_len, char *value, size_t value_len, int …
/PHP-7.0/ext/zip/
H A Dphp_zip.c1793 size_t name_len; in ZIPARCHIVE_METHOD() local
2040 if (name_len < 1) { in ZIPARCHIVE_METHOD()
2088 size_t name_len; in ZIPARCHIVE_METHOD() local
2104 if (name_len < 1) { in ZIPARCHIVE_METHOD()
2155 size_t name_len; in ZIPARCHIVE_METHOD() local
2173 if (name_len < 1) { in ZIPARCHIVE_METHOD()
2235 size_t name_len; in ZIPARCHIVE_METHOD() local
2252 if (name_len < 1) { in ZIPARCHIVE_METHOD()
2301 size_t name_len; in ZIPARCHIVE_METHOD() local
2398 size_t name_len; in ZIPARCHIVE_METHOD() local
[all …]
/PHP-7.0/ext/oci8/
H A Doci8_interface.c114 size_t name_len; in PHP_FUNCTION() local
124 if (!name_len) { in PHP_FUNCTION()
142 zvtmp = zend_string_init(name, name_len, 0); in PHP_FUNCTION()
151 define->name = (text*) ecalloc(1, name_len+1); in PHP_FUNCTION()
152 memcpy(define->name, name, name_len); in PHP_FUNCTION()
153 define->name[name_len] = '\0'; in PHP_FUNCTION()
154 define->name_len = (ub4) name_len; in PHP_FUNCTION()
169 size_t name_len; in PHP_FUNCTION() local
197 size_t name_len; in PHP_FUNCTION() local
1188 RETURN_STRINGL(column->name, column->name_len); in PHP_FUNCTION()
[all …]
/PHP-7.0/sapi/apache2handler/
H A Dphp_apache.h56 char *get_php_config(void *conf, char *name, size_t name_len);
/PHP-7.0/ext/soap/
H A Dphp_http.c105 int name_len; in http_context_headers() local
114 name_len = -1; in http_context_headers()
117 if (name_len < 0) name_len = p - s; in http_context_headers()
120 if (name_len < 0) name_len = p - s; in http_context_headers()
132 if ((name_len != sizeof("host")-1 || in http_context_headers()
134 (name_len != sizeof("connection")-1 || in http_context_headers()
136 (name_len != sizeof("user-agent")-1 || in http_context_headers()
138 (name_len != sizeof("content-length")-1 || in http_context_headers()
140 (name_len != sizeof("content-type")-1 || in http_context_headers()
143 name_len != sizeof("cookie")-1 || in http_context_headers()
[all …]
/PHP-7.0/ext/mysqli/
H A Dmysqli_nonapi.c1087 size_t name_len = -1; local
1090 …), getThis(), "O|ls", &mysql_link, mysqli_link_class_entry, &flags, &name, &name_len) == FAILURE) {
1098 if (!name_len) {
1140 size_t name_len = -1; local
1142 …_NUM_ARGS(), getThis(), "Os", &mysql_link, mysqli_link_class_entry, &name, &name_len) == FAILURE) {
1146 if (!name || !name_len) {
1169 size_t name_len = -1; local
1171 …_NUM_ARGS(), getThis(), "Os", &mysql_link, mysqli_link_class_entry, &name, &name_len) == FAILURE) {
1175 if (!name || !name_len) {

Completed in 99 milliseconds

123