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

/PHP_TRUNK/ext/standard/
H A Dbasic_functions.c814 ZEND_ARG_INFO(0, new_path)
5709 /* {{{ proto bool move_uploaded_file(string path, string new_path)
5713 char *path, *new_path; local
5725 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss", &path, &path_len, &new_path, &new_path_len) == FAILURE) {
5733 if (php_check_open_basedir(new_path)) {
5737 if (VCWD_RENAME(path, new_path) == 0) {
5743 ret = VCWD_CHMOD(new_path, 0666 & ~oldmask);
5749 } else if (php_copy_file_ex(path, new_path, STREAM_DISABLE_OPEN_BASEDIR) == SUCCESS) {
5757 php_error_docref(NULL, E_WARNING, "Unable to move '%s' to '%s'", path, new_path);
H A Dhttp_fopen_wrapper.c805 char new_path[HTTP_HEADER_BLOCK_SIZE]; local
808 *new_path='\0';
839 snprintf(new_path, sizeof(new_path) - 1, "%s://%s:%d%s", resource->scheme, resource->host, resource->port, loc_path);
841 snprintf(new_path, sizeof(new_path) - 1, "%s://%s%s", resource->scheme, resource->host, loc_path);
844 strlcpy(new_path, location, sizeof(new_path));
849 if ((resource = php_url_parse(new_path)) == NULL) {
850 php_stream_wrapper_log_error(wrapper, options, "Invalid redirect URL! %s", new_path);
[all...]
/PHP_TRUNK/win32/
H A Dregistry.c116 char *new_path = (char*)emalloc(path_len+max_key+2); local
126 memcpy(new_path, path, path_len);
127 new_path[path_len] = '/';
128 memcpy(new_path+path_len+1, name, name_len+1);
129 zend_str_tolower(new_path, path_len+name_len+1);
132 memcpy(new_path, name, name_len+1);
133 zend_str_tolower(new_path, name_len);
135 if (LoadDirectory(directories, subkey, new_path, name_len, ht)) {
142 efree(new_path);

Completed in 11 milliseconds