Home
last modified time | relevance | path

Searched refs:new_path (Results 1 – 4 of 4) sorted by relevance

/PHP-8.4/win32/
H A Dregistry.c138 char *new_path = (char*)emalloc(path_len+max_key+2); in LoadDirectory() local
148 memcpy(new_path, path, path_len); in LoadDirectory()
149 new_path[path_len] = '/'; in LoadDirectory()
150 memcpy(new_path+path_len+1, name, name_len+1); in LoadDirectory()
151 zend_str_tolower(new_path, path_len+name_len+1); in LoadDirectory()
154 memcpy(new_path, name, name_len+1); in LoadDirectory()
155 zend_str_tolower(new_path, name_len); in LoadDirectory()
157 if (LoadDirectory(directories, subkey, new_path, name_len, ht)) { in LoadDirectory()
164 efree(new_path); in LoadDirectory()
/PHP-8.4/ext/standard/
H A Dhttp_fopen_wrapper.c852 char new_path[HTTP_HEADER_BLOCK_SIZE]; in php_stream_url_wrap_http_ex() local
855 *new_path='\0'; in php_stream_url_wrap_http_ex()
889 …snprintf(new_path, sizeof(new_path) - 1, "%s://%s:%d%s", ZSTR_VAL(resource->scheme), ZSTR_VAL(reso… in php_stream_url_wrap_http_ex()
891 …snprintf(new_path, sizeof(new_path) - 1, "%s://%s%s", ZSTR_VAL(resource->scheme), ZSTR_VAL(resourc… in php_stream_url_wrap_http_ex()
894 strlcpy(new_path, location, sizeof(new_path)); in php_stream_url_wrap_http_ex()
899 if ((resource = php_url_parse(new_path)) == NULL) { in php_stream_url_wrap_http_ex()
900 php_stream_wrapper_log_error(wrapper, options, "Invalid redirect URL! %s", new_path); in php_stream_url_wrap_http_ex()
911 php_stream_wrapper_log_error(wrapper, options, "Invalid redirect URL! %s", new_path); \ in php_stream_url_wrap_http_ex()
919 …if (strncasecmp(new_path, "http://", sizeof("http://") - 1) || strncasecmp(new_path, "https://", s… in php_stream_url_wrap_http_ex()
932 wrapper, new_path, mode, options, opened_path, context, in php_stream_url_wrap_http_ex()
H A Dbasic_functions.c2365 char *path, *new_path; local
2375 Z_PARAM_PATH(new_path, new_path_len)
2386 if (php_check_open_basedir(new_path)) {
2390 if (VCWD_RENAME(path, new_path) == 0) {
2396 ret = VCWD_CHMOD(new_path, 0666 & ~oldmask);
2402 } else if (php_copy_file_ex(path, new_path, STREAM_DISABLE_OPEN_BASEDIR) == SUCCESS) {
2410 php_error_docref(NULL, E_WARNING, "Unable to move \"%s\" to \"%s\"", path, new_path);
/PHP-8.4/ext/dom/
H A Dphp_dom.c2734 xmlChar *new_path = xmlStrdup(BAD_CAST "file:///"); in php_dom_libxml_fix_file_path() local
2735 if (UNEXPECTED(new_path == NULL)) { in php_dom_libxml_fix_file_path()
2738 new_path = xmlStrcat(new_path, path + 6); in php_dom_libxml_fix_file_path()
2740 return new_path; in php_dom_libxml_fix_file_path()

Completed in 39 milliseconds