mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
Add zip_close() and some inline docs
This commit is contained in:
parent
9efb12491d
commit
99ea79d3b5
@ -301,7 +301,7 @@
|
|||||||
/* Open the (uploaded) zip file */
|
/* Open the (uploaded) zip file */
|
||||||
$zip = zip_open($filename);
|
$zip = zip_open($filename);
|
||||||
|
|
||||||
$temp = tempnam('/tmp','zip2vcf');
|
$temp = tempnam('/tmp','zip2contact');
|
||||||
/* Open a temp file for read/write */
|
/* Open a temp file for read/write */
|
||||||
$fp = fopen($temp, 'w+');
|
$fp = fopen($temp, 'w+');
|
||||||
|
|
||||||
@ -323,7 +323,12 @@
|
|||||||
zip_entry_close($dirent);
|
zip_entry_close($dirent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* Close the zip file resource handle */
|
||||||
|
zip_close($zip);
|
||||||
|
|
||||||
|
/* Set the file pointer of our new file to the beginning for use by the import routines */
|
||||||
rewind($fp);
|
rewind($fp);
|
||||||
|
|
||||||
return $fp;
|
return $fp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user