summaryrefslogtreecommitdiffstats
path: root/system/libraries/Zip.php
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-05-05 20:29:43 +0200
committerDerek Jones <derek.jones@ellislab.com>2008-05-05 20:29:43 +0200
commit14031d152b76e7744d6f8a70964ecae77ca55179 (patch)
tree2738a95460ee4efd5a70e5853f419e6a10d4539f /system/libraries/Zip.php
parent5f6b5442e5a3d7fa5cf6c047ed716b82946629a2 (diff)
implemented fopen mode constants
Diffstat (limited to 'system/libraries/Zip.php')
-rw-r--r--system/libraries/Zip.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Zip.php b/system/libraries/Zip.php
index 4bdc92547..6b5988017 100644
--- a/system/libraries/Zip.php
+++ b/system/libraries/Zip.php
@@ -301,7 +301,7 @@ class CI_Zip {
*/
function archive($filepath)
{
- if (! ($fp = @fopen($filepath, "wb")))
+ if (! ($fp = @fopen($filepath, FOPEN_WRITE_CREATE_BOF)))
{
return FALSE;
}