mirror of
https://github.com/php/php-src.git
synced 2024-12-11 19:04:38 +08:00
brought the fix for #47667 back
This commit is contained in:
parent
a37e84e549
commit
b8cdc731b8
@ -61,10 +61,16 @@ ZIP_EXTERN(struct zip *)
|
||||
zip_open(const char *fn, int flags, int *zep)
|
||||
{
|
||||
FILE *fp;
|
||||
|
||||
|
||||
if (flags & ZIP_OVERWRITE) {
|
||||
return _zip_allocate_new(fn, zep);
|
||||
}
|
||||
|
||||
switch (_zip_file_exists(fn, flags, zep)) {
|
||||
case -1:
|
||||
return NULL;
|
||||
if (!(flags & ZIP_OVERWRITE)) {
|
||||
return NULL;
|
||||
}
|
||||
case 0:
|
||||
return _zip_allocate_new(fn, zep);
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user