Lines Matching refs:fullpath

4128 	char *fullpath;  in phar_extract_file()  local
4175 len = spprintf(&fullpath, 0, "%s/%s", dest, filename); in phar_extract_file()
4180 fullpath[50] = '\0'; in phar_extract_file()
4183 …not extract \"%s...\" to \"%s...\", extracted filename is too long for filesystem", tmp, fullpath); in phar_extract_file()
4186 …ct \"%s\" to \"%s...\", extracted filename is too long for filesystem", entry->filename, fullpath); in phar_extract_file()
4188 efree(fullpath); in phar_extract_file()
4195 efree(fullpath); in phar_extract_file()
4200 if (PHAR_OPENBASEDIR_CHECKPATH(fullpath)) { in phar_extract_file()
4201 …xtract \"%s\" to \"%s\", openbasedir/safe mode restrictions in effect", entry->filename, fullpath); in phar_extract_file()
4202 efree(fullpath); in phar_extract_file()
4208 if (!overwrite && SUCCESS == php_stream_stat_path(fullpath, &ssb)) { in phar_extract_file()
4209 …tf(error, 4096, "Cannot extract \"%s\" to \"%s\", path already exists", entry->filename, fullpath); in phar_extract_file()
4210 efree(fullpath); in phar_extract_file()
4219 fullpath[dest_len + (slash - filename) + 1] = '\0'; in phar_extract_file()
4221 fullpath[dest_len] = '\0'; in phar_extract_file()
4224 if (FAILURE == php_stream_stat_path(fullpath, &ssb)) { in phar_extract_file()
4226 …if (!php_stream_mkdir(fullpath, entry->flags & PHAR_ENT_PERM_MASK, PHP_STREAM_MKDIR_RECURSIVE, NU… in phar_extract_file()
4227 …rror, 4096, "Cannot extract \"%s\", could not create directory \"%s\"", entry->filename, fullpath); in phar_extract_file()
4228 efree(fullpath); in phar_extract_file()
4233 if (!php_stream_mkdir(fullpath, 0777, PHP_STREAM_MKDIR_RECURSIVE, NULL)) { in phar_extract_file()
4234 …rror, 4096, "Cannot extract \"%s\", could not create directory \"%s\"", entry->filename, fullpath); in phar_extract_file()
4235 efree(fullpath); in phar_extract_file()
4243 fullpath[dest_len + (slash - filename) + 1] = '/'; in phar_extract_file()
4245 fullpath[dest_len] = '/'; in phar_extract_file()
4252 efree(fullpath); in phar_extract_file()
4257 fp = php_stream_open_wrapper(fullpath, "w+b", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL); in phar_extract_file()
4259 fp = php_stream_open_wrapper(fullpath, "w+b", REPORT_ERRORS, NULL); in phar_extract_file()
4263 …rror, 4096, "Cannot extract \"%s\", could not open for writing \"%s\"", entry->filename, fullpath); in phar_extract_file()
4264 efree(fullpath); in phar_extract_file()
4271 …ct \"%s\" to \"%s\", unable to open internal file pointer: %s", entry->filename, fullpath, *error); in phar_extract_file()
4273 …Cannot extract \"%s\" to \"%s\", unable to open internal file pointer", entry->filename, fullpath); in phar_extract_file()
4275 efree(fullpath); in phar_extract_file()
4282 …Cannot extract \"%s\" to \"%s\", unable to seek internal file pointer", entry->filename, fullpath); in phar_extract_file()
4283 efree(fullpath); in phar_extract_file()
4289 …rror, 4096, "Cannot extract \"%s\" to \"%s\", copying contents failed", entry->filename, fullpath); in phar_extract_file()
4290 efree(fullpath); in phar_extract_file()
4298 if (FAILURE == VCWD_CHMOD(fullpath, mode)) { in phar_extract_file()
4299 …96, "Cannot extract \"%s\" to \"%s\", setting file permissions failed", entry->filename, fullpath); in phar_extract_file()
4300 efree(fullpath); in phar_extract_file()
4304 efree(fullpath); in phar_extract_file()