Lines Matching refs:fullpath
4112 char *fullpath; in phar_extract_file() local
4159 len = spprintf(&fullpath, 0, "%s/%s", dest, filename); in phar_extract_file()
4164 fullpath[50] = '\0'; in phar_extract_file()
4167 …not extract \"%s...\" to \"%s...\", extracted filename is too long for filesystem", tmp, fullpath); in phar_extract_file()
4170 …ct \"%s\" to \"%s...\", extracted filename is too long for filesystem", entry->filename, fullpath); in phar_extract_file()
4172 efree(fullpath); in phar_extract_file()
4179 efree(fullpath); in phar_extract_file()
4184 if (php_check_open_basedir(fullpath)) { in phar_extract_file()
4185 …xtract \"%s\" to \"%s\", openbasedir/safe mode restrictions in effect", entry->filename, fullpath); in phar_extract_file()
4186 efree(fullpath); in phar_extract_file()
4192 if (!overwrite && SUCCESS == php_stream_stat_path(fullpath, &ssb)) { in phar_extract_file()
4193 …tf(error, 4096, "Cannot extract \"%s\" to \"%s\", path already exists", entry->filename, fullpath); in phar_extract_file()
4194 efree(fullpath); in phar_extract_file()
4203 fullpath[dest_len + (slash - filename) + 1] = '\0'; in phar_extract_file()
4205 fullpath[dest_len] = '\0'; in phar_extract_file()
4208 if (FAILURE == php_stream_stat_path(fullpath, &ssb)) { in phar_extract_file()
4210 …if (!php_stream_mkdir(fullpath, entry->flags & PHAR_ENT_PERM_MASK, PHP_STREAM_MKDIR_RECURSIVE, NU… in phar_extract_file()
4211 …rror, 4096, "Cannot extract \"%s\", could not create directory \"%s\"", entry->filename, fullpath); in phar_extract_file()
4212 efree(fullpath); in phar_extract_file()
4217 if (!php_stream_mkdir(fullpath, 0777, PHP_STREAM_MKDIR_RECURSIVE, NULL)) { in phar_extract_file()
4218 …rror, 4096, "Cannot extract \"%s\", could not create directory \"%s\"", entry->filename, fullpath); in phar_extract_file()
4219 efree(fullpath); in phar_extract_file()
4227 fullpath[dest_len + (slash - filename) + 1] = '/'; in phar_extract_file()
4229 fullpath[dest_len] = '/'; in phar_extract_file()
4236 efree(fullpath); in phar_extract_file()
4240 fp = php_stream_open_wrapper(fullpath, "w+b", REPORT_ERRORS, NULL); in phar_extract_file()
4243 …rror, 4096, "Cannot extract \"%s\", could not open for writing \"%s\"", entry->filename, fullpath); in phar_extract_file()
4244 efree(fullpath); in phar_extract_file()
4251 …ct \"%s\" to \"%s\", unable to open internal file pointer: %s", entry->filename, fullpath, *error); in phar_extract_file()
4253 …Cannot extract \"%s\" to \"%s\", unable to open internal file pointer", entry->filename, fullpath); in phar_extract_file()
4255 efree(fullpath); in phar_extract_file()
4262 …Cannot extract \"%s\" to \"%s\", unable to seek internal file pointer", entry->filename, fullpath); in phar_extract_file()
4263 efree(fullpath); in phar_extract_file()
4269 …rror, 4096, "Cannot extract \"%s\" to \"%s\", copying contents failed", entry->filename, fullpath); in phar_extract_file()
4270 efree(fullpath); in phar_extract_file()
4278 if (FAILURE == VCWD_CHMOD(fullpath, mode)) { in phar_extract_file()
4279 …96, "Cannot extract \"%s\" to \"%s\", setting file permissions failed", entry->filename, fullpath); in phar_extract_file()
4280 efree(fullpath); in phar_extract_file()
4284 efree(fullpath); in phar_extract_file()