/PHP-7.2/Zend/ |
H A D | zend_constants.c | 211 } else if (name_len == sizeof("__COMPILER_HALT_OFFSET__")-1 && in zend_get_special_constant() 249 char *lcname = do_alloca(name_len + 1, use_heap); in zend_get_constant_str() 250 zend_str_tolower_copy(lcname, name, name_len); in zend_get_constant_str() 256 c = zend_get_special_constant(name, name_len); in zend_get_constant_str() 291 size_t name_len = ZSTR_LEN(cname); in zend_get_constant_ex() local 296 name_len -= 1; in zend_get_constant_ex() 300 if ((colon = zend_memrchr(name, ':', name_len)) && in zend_get_constant_ex() 303 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 D | zend_constants.h | 69 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_…
|
/PHP-7.2/ext/phar/ |
H A D | stub.h | 21 static inline zend_string* phar_get_stub(const char *index_php, const char *web, const int name_len… in phar_get_stub() argument 32 …rn strpprintf(name_len + web_len + newstub_len, "%s%s%s%s%s%s%d%s%s", newstub0, web, newstub1_0, n… in phar_get_stub()
|
/PHP-7.2/win32/ |
H A D | registry.c | 90 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.2/ext/dom/ |
H A D | element.c | 330 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 D | domimplementation.c | 96 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 D | entityreference.c | 56 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 D | processinginstruction.c | 57 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 D | document.c | 702 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 D | attr.c | 63 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.2/ext/xmlwriter/ |
H A D | php_xmlwriter.c | 698 size_t name_len; in php_xmlwriter_string_arg() local 843 size_t name_len, prefix_len, uri_len; in PHP_FUNCTION() local 887 size_t name_len, content_len; in PHP_FUNCTION() local 984 size_t name_len, prefix_len, uri_len; in PHP_FUNCTION() local 1044 size_t name_len, content_len; in PHP_FUNCTION() local 1168 size_t name_len, content_len; in PHP_FUNCTION() local 1379 size_t name_len, pubid_len, sysid_len; in PHP_FUNCTION() local 1483 size_t name_len, content_len; in PHP_FUNCTION() local 1542 size_t name_len, content_len; in PHP_FUNCTION() local 1585 size_t name_len; in PHP_FUNCTION() local [all …]
|
/PHP-7.2/sapi/fpm/fpm/ |
H A D | fpm_env.c | 45 int name_len = strlen(name); in setenv() local 47 char *var = alloca(name_len + 1 + value_len + 1); in setenv() 49 memcpy(var, name, name_len); in setenv() 51 var[name_len] = '='; in setenv() 53 memcpy(var + name_len + 1, value, value_len); in setenv() 55 var[name_len + 1 + value_len] = '\0'; in setenv()
|
H A D | fpm_php.c | 86 int name_len = strlen(name); in fpm_php_apply_defines_ex() local 95 …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.2/ext/curl/ |
H A D | curl_file.c | 73 static void curlfile_get_property(char *name, size_t name_len, INTERNAL_FUNCTION_PARAMETERS) in curlfile_get_property() argument 80 res = zend_read_property(curl_CURLFile_class, getThis(), name, name_len, 1, &rv); in curlfile_get_property() 85 static void curlfile_set_property(char *name, size_t name_len, INTERNAL_FUNCTION_PARAMETERS) in curlfile_set_property() argument 93 zend_update_property_string(curl_CURLFile_class, getThis(), name, name_len, ZSTR_VAL(arg)); in curlfile_set_property()
|
/PHP-7.2/ext/standard/ |
H A D | url_scanner_ex.h | 31 PHPAPI int php_url_scanner_add_session_var(char *name, size_t name_len, char *value, size_t value_l… 34 PHPAPI int php_url_scanner_add_var(char *name, size_t name_len, char *value, size_t value_len, int …
|
/PHP-7.2/sapi/phpdbg/ |
H A D | phpdbg_cmd.c | 34 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.2/main/ |
H A D | output.c | 520 zend_string *str = zend_string_init(name, name_len, 0); 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 D | php_output.h | 227 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 D | fastcgi.c | 1018 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.2/ext/zip/ |
H A D | php_zip.c | 1840 size_t name_len; in ZIPARCHIVE_METHOD() local 2087 if (name_len < 1) { in ZIPARCHIVE_METHOD() 2135 size_t name_len; in ZIPARCHIVE_METHOD() local 2151 if (name_len < 1) { in ZIPARCHIVE_METHOD() 2202 size_t name_len; in ZIPARCHIVE_METHOD() local 2220 if (name_len < 1) { in ZIPARCHIVE_METHOD() 2299 if (name_len < 1) { in ZIPARCHIVE_METHOD() 2350 size_t name_len; in ZIPARCHIVE_METHOD() local 2416 size_t name_len; in ZIPARCHIVE_METHOD() local 2513 size_t name_len; in ZIPARCHIVE_METHOD() local [all …]
|
/PHP-7.2/ext/xmlreader/ |
H A D | php_xmlreader.c | 402 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.2/ext/oci8/ |
H A D | oci8_interface.c | 126 size_t name_len; in PHP_FUNCTION() local 134 Z_PARAM_STRING(name, name_len) in PHP_FUNCTION() 140 if (!name_len) { in PHP_FUNCTION() 158 zvtmp = zend_string_init(name, name_len, 0); in PHP_FUNCTION() 176 memcpy(define->name, name, name_len); in PHP_FUNCTION() 177 define->name[name_len] = '\0'; in PHP_FUNCTION() 178 define->name_len = (ub4) name_len; in PHP_FUNCTION() 193 size_t name_len; in PHP_FUNCTION() local 202 Z_PARAM_STRING(name, name_len) in PHP_FUNCTION() 226 size_t name_len; in PHP_FUNCTION() local [all …]
|
/PHP-7.2/sapi/apache2handler/ |
H A D | php_apache.h | 58 char *get_php_config(void *conf, char *name, size_t name_len);
|
/PHP-7.2/ext/soap/ |
H A D | php_http.c | 105 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.2/ext/reflection/ |
H A D | php_reflection.c | 1139 size_t name_len = strlen(name_str); in reflection_extension_factory() local 1143 lcname = zend_string_alloc(name_len, 0); in reflection_extension_factory() 1572 size_t name_len; in ZEND_METHOD() local 1591 name_len--; in ZEND_METHOD() 2991 size_t name_len, tmp_len; in ZEND_METHOD() local 3007 name_len = name_len - (tmp_len + 2); in ZEND_METHOD() 4136 size_t name_len; in ZEND_METHOD() local 4166 size_t name_len; in ZEND_METHOD() local 5323 size_t name_len; in ZEND_METHOD() local 5722 size_t name_len; in ZEND_METHOD() local [all …]
|