summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-05-05 22:07:09 +0200
committerDerek Jones <derek.jones@ellislab.com>2008-05-05 22:07:09 +0200
commit3be20e26b7d3c0f60bc60b314a85138100edab52 (patch)
treebd134700b39e5331a190d47684ddf29c11cd951e /system/libraries
parent14031d152b76e7744d6f8a70964ecae77ca55179 (diff)
tweak to the new fopen mode constant names
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Email.php2
-rw-r--r--system/libraries/Log.php2
-rw-r--r--system/libraries/Upload.php2
-rw-r--r--system/libraries/Zip.php2
4 files changed, 4 insertions, 4 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index d71f593e9..e0fa689b3 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -1070,7 +1070,7 @@ class CI_Email {
$attachment[$z++] = $h;
$file = filesize($filename) +1;
- if (! $fp = fopen($filename, FOPEN_READ_BOF))
+ if (! $fp = fopen($filename, FOPEN_READ))
{
$this->_set_error_message('email_attachment_unreadable', $filename);
return FALSE;
diff --git a/system/libraries/Log.php b/system/libraries/Log.php
index 370ab7922..26757ba50 100644
--- a/system/libraries/Log.php
+++ b/system/libraries/Log.php
@@ -97,7 +97,7 @@ class CI_Log {
$message .= "<"."?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?".">\n\n";
}
- if (! $fp = @fopen($filepath, FOPEN_WRITE_CREATE_EOF))
+ if (! $fp = @fopen($filepath, FOPEN_WRITE_CREATE))
{
return FALSE;
}
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php
index 853c162bd..0fc38dc4f 100644
--- a/system/libraries/Upload.php
+++ b/system/libraries/Upload.php
@@ -741,7 +741,7 @@ class CI_Upload {
return FALSE;
}
- if (! $fp = @fopen($file, FOPEN_READ_WRITE_BOF))
+ if (! $fp = @fopen($file, FOPEN_READ_WRITE))
{
return FALSE;
}
diff --git a/system/libraries/Zip.php b/system/libraries/Zip.php
index 6b5988017..f7f47ab42 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, FOPEN_WRITE_CREATE_BOF)))
+ if (! ($fp = @fopen($filepath, FOPEN_WRITE_CREATE_DESTRUCTIVE)))
{
return FALSE;
}