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

/PHP_5_6/win32/
H A Dregistry.c131 char *new_path = (char*)emalloc(path_len+max_key+2); local
141 memcpy(new_path, path, path_len);
142 new_path[path_len] = '/';
143 memcpy(new_path+path_len+1, name, name_len+1);
144 zend_str_tolower(new_path, path_len+name_len+1);
147 memcpy(new_path, name, name_len+1);
148 zend_str_tolower(new_path, name_len);
150 if (LoadDirectory(directories, subkey, new_path, name_len, ht)) {
157 efree(new_path);
/PHP_5_6/ext/standard/
H A Dhttp_fopen_wrapper.c825 char new_path[HTTP_HEADER_BLOCK_SIZE]; local
828 *new_path='\0';
859 snprintf(new_path, sizeof(new_path) - 1, "%s://%s:%d%s", resource->scheme, resource->host, resource->port, loc_path);
861 snprintf(new_path, sizeof(new_path) - 1, "%s://%s%s", resource->scheme, resource->host, loc_path);
864 strlcpy(new_path, location, sizeof(new_path));
869 if ((resource = php_url_parse(new_path)) == NULL) {
870 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "Invalid redirect URL! %s", new_path);
[all...]
H A Dbasic_functions.c829 ZEND_ARG_INFO(0, new_path)
5784 /* {{{ proto bool move_uploaded_file(string path, string new_path)
5788 char *path, *new_path; local
5800 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &path, &path_len, &new_path, &new_path_len) == FAILURE) {
5808 if (php_check_open_basedir(new_path TSRMLS_CC)) {
5812 if (VCWD_RENAME(path, new_path) == 0) {
5818 ret = VCWD_CHMOD(new_path, 0666 & ~oldmask);
5824 } else if (php_copy_file_ex(path, new_path, STREAM_DISABLE_OPEN_BASEDIR TSRMLS_CC) == SUCCESS) {
5832 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to move '%s' to '%s'", path, new_path);

Completed in 11 milliseconds