Home
last modified time | relevance | path

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

/PHP-5.3/win32/
H A Dregistry.c131 char *new_path = (char*)emalloc(path_len+max_key+2); in LoadDirectory() local
141 memcpy(new_path, path, path_len); in LoadDirectory()
142 new_path[path_len] = '/'; in LoadDirectory()
143 memcpy(new_path+path_len+1, name, name_len+1); in LoadDirectory()
144 zend_str_tolower(new_path, path_len+name_len+1); in LoadDirectory()
147 memcpy(new_path, name, name_len+1); in LoadDirectory()
148 zend_str_tolower(new_path, name_len); in LoadDirectory()
150 if (LoadDirectory(directories, subkey, new_path, name_len, ht)) { in LoadDirectory()
157 efree(new_path); in LoadDirectory()
/PHP-5.3/ext/standard/
H A Dhttp_fopen_wrapper.c798 char new_path[HTTP_HEADER_BLOCK_SIZE]; in php_stream_url_wrap_http_ex() local
801 *new_path='\0'; in php_stream_url_wrap_http_ex()
832 …snprintf(new_path, sizeof(new_path) - 1, "%s://%s:%d%s", resource->scheme, resource->host, resourc… in php_stream_url_wrap_http_ex()
834 … snprintf(new_path, sizeof(new_path) - 1, "%s://%s%s", resource->scheme, resource->host, loc_path); in php_stream_url_wrap_http_ex()
837 strlcpy(new_path, location, sizeof(new_path)); in php_stream_url_wrap_http_ex()
842 if ((resource = php_url_parse(new_path)) == NULL) { in php_stream_url_wrap_http_ex()
843 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Invalid redirect URL! %s", new_path); in php_stream_url_wrap_http_ex()
855 … php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Invalid redirect URL! %s", new_path); \ in php_stream_url_wrap_http_ex()
863 …if (strncasecmp(new_path, "http://", sizeof("http://") - 1) || strncasecmp(new_path, "https://", s… in php_stream_url_wrap_http_ex()
868 …stream = php_stream_url_wrap_http_ex(wrapper, new_path, mode, options, opened_path, context, --red… in php_stream_url_wrap_http_ex()
H A Dbasic_functions.c839 ZEND_ARG_INFO(0, new_path)
5837 char *path, *new_path; local
5849 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &path, &path_len, &new_path, &new_path_…
5857 if (PG(safe_mode) && (!php_checkuid(new_path, NULL, CHECKUID_CHECK_FILE_AND_DIR))) {
5861 if (php_check_open_basedir(new_path TSRMLS_CC)) {
5869 if (strlen(new_path) != new_path_len) {
5873 if (VCWD_RENAME(path, new_path) == 0) {
5879 ret = VCWD_CHMOD(new_path, 0666 & ~oldmask);
5885 } else if (php_copy_file_ex(path, new_path, STREAM_DISABLE_OPEN_BASEDIR TSRMLS_CC) == SUCCESS) {
5893 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to move '%s' to '%s'", path, new_path);

Completed in 29 milliseconds