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

/PHP_TRUNK/ext/standard/
H A Dhttp_fopen_wrapper.c822 char new_path[HTTP_HEADER_BLOCK_SIZE]; local
825 *new_path='\0';
856 snprintf(new_path, sizeof(new_path) - 1, "%s://%s:%d%s", resource->scheme, resource->host, resource->port, loc_path);
858 snprintf(new_path, sizeof(new_path) - 1, "%s://%s%s", resource->scheme, resource->host, loc_path);
861 strlcpy(new_path, location, sizeof(new_path));
866 if ((resource = php_url_parse(new_path)) == NULL) {
867 php_stream_wrapper_log_error(wrapper, options, "Invalid redirect URL! %s", new_path);
[all...]
H A Dbasic_functions.c813 ZEND_ARG_INFO(0, new_path)
5744 /* {{{ proto bool move_uploaded_file(string path, string new_path)
5748 char *path, *new_path; local
5760 if (zend_parse_parameters(ZEND_NUM_ARGS(), "sp", &path, &path_len, &new_path, &new_path_len) == FAILURE) {
5768 if (php_check_open_basedir(new_path)) {
5772 if (VCWD_RENAME(path, new_path) == 0) {
5778 ret = VCWD_CHMOD(new_path, 0666 & ~oldmask);
5784 } else if (php_copy_file_ex(path, new_path, STREAM_DISABLE_OPEN_BASEDIR) == SUCCESS) {
5792 php_error_docref(NULL, E_WARNING, "Unable to move '%s' to '%s'", path, new_path);
/PHP_TRUNK/win32/
H A Dregistry.c140 char *new_path = (char*)emalloc(path_len+max_key+2); local
150 memcpy(new_path, path, path_len);
151 new_path[path_len] = '/';
152 memcpy(new_path+path_len+1, name, name_len+1);
153 zend_str_tolower(new_path, path_len+name_len+1);
156 memcpy(new_path, name, name_len+1);
157 zend_str_tolower(new_path, name_len);
159 if (LoadDirectory(directories, subkey, new_path, name_len, ht)) {
166 efree(new_path);

Completed in 13 milliseconds