Lines Matching refs:fullpath

4092 	char *fullpath;  in phar_extract_file()  local
4139 len = spprintf(&fullpath, 0, "%s/%s", dest, filename); in phar_extract_file()
4144 fullpath[50] = '\0'; in phar_extract_file()
4147 …not extract \"%s...\" to \"%s...\", extracted filename is too long for filesystem", tmp, fullpath); in phar_extract_file()
4150 …ct \"%s\" to \"%s...\", extracted filename is too long for filesystem", entry->filename, fullpath); in phar_extract_file()
4152 efree(fullpath); in phar_extract_file()
4159 efree(fullpath); in phar_extract_file()
4164 if (php_check_open_basedir(fullpath)) { in phar_extract_file()
4165 …xtract \"%s\" to \"%s\", openbasedir/safe mode restrictions in effect", entry->filename, fullpath); in phar_extract_file()
4166 efree(fullpath); in phar_extract_file()
4172 if (!overwrite && SUCCESS == php_stream_stat_path(fullpath, &ssb)) { in phar_extract_file()
4173 …tf(error, 4096, "Cannot extract \"%s\" to \"%s\", path already exists", entry->filename, fullpath); in phar_extract_file()
4174 efree(fullpath); in phar_extract_file()
4183 fullpath[dest_len + (slash - filename) + 1] = '\0'; in phar_extract_file()
4185 fullpath[dest_len] = '\0'; in phar_extract_file()
4188 if (FAILURE == php_stream_stat_path(fullpath, &ssb)) { in phar_extract_file()
4190 …if (!php_stream_mkdir(fullpath, entry->flags & PHAR_ENT_PERM_MASK, PHP_STREAM_MKDIR_RECURSIVE, NU… in phar_extract_file()
4191 …rror, 4096, "Cannot extract \"%s\", could not create directory \"%s\"", entry->filename, fullpath); in phar_extract_file()
4192 efree(fullpath); in phar_extract_file()
4197 if (!php_stream_mkdir(fullpath, 0777, PHP_STREAM_MKDIR_RECURSIVE, NULL)) { in phar_extract_file()
4198 …rror, 4096, "Cannot extract \"%s\", could not create directory \"%s\"", entry->filename, fullpath); in phar_extract_file()
4199 efree(fullpath); in phar_extract_file()
4207 fullpath[dest_len + (slash - filename) + 1] = '/'; in phar_extract_file()
4209 fullpath[dest_len] = '/'; in phar_extract_file()
4216 efree(fullpath); in phar_extract_file()
4220 fp = php_stream_open_wrapper(fullpath, "w+b", REPORT_ERRORS, NULL); in phar_extract_file()
4223 …rror, 4096, "Cannot extract \"%s\", could not open for writing \"%s\"", entry->filename, fullpath); in phar_extract_file()
4224 efree(fullpath); in phar_extract_file()
4231 …ct \"%s\" to \"%s\", unable to open internal file pointer: %s", entry->filename, fullpath, *error); in phar_extract_file()
4233 …Cannot extract \"%s\" to \"%s\", unable to open internal file pointer", entry->filename, fullpath); in phar_extract_file()
4235 efree(fullpath); in phar_extract_file()
4242 …Cannot extract \"%s\" to \"%s\", unable to seek internal file pointer", entry->filename, fullpath); in phar_extract_file()
4243 efree(fullpath); in phar_extract_file()
4249 …rror, 4096, "Cannot extract \"%s\" to \"%s\", copying contents failed", entry->filename, fullpath); in phar_extract_file()
4250 efree(fullpath); in phar_extract_file()
4258 if (FAILURE == VCWD_CHMOD(fullpath, mode)) { in phar_extract_file()
4259 …96, "Cannot extract \"%s\" to \"%s\", setting file permissions failed", entry->filename, fullpath); in phar_extract_file()
4260 efree(fullpath); in phar_extract_file()
4264 efree(fullpath); in phar_extract_file()