summaryrefslogtreecommitdiffstats
path: root/system/codeigniter
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/codeigniter
parent5f6b5442e5a3d7fa5cf6c047ed716b82946629a2 (diff)
implemented fopen mode constants
Diffstat (limited to 'system/codeigniter')
-rw-r--r--system/codeigniter/Common.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/codeigniter/Common.php b/system/codeigniter/Common.php
index 05720a459..b6a4ce4c5 100644
--- a/system/codeigniter/Common.php
+++ b/system/codeigniter/Common.php
@@ -46,7 +46,7 @@ function is_really_writable($file)
{
$file = rtrim($file, '/').'/'.md5(rand(1,100));
- if (($fp = @fopen($file, 'ab')) === FALSE)
+ if (($fp = @fopen($file, FOPEN_WRITE_CREATE_EOF)) === FALSE)
{
return FALSE;
}
@@ -56,7 +56,7 @@ function is_really_writable($file)
@unlink($file);
return TRUE;
}
- elseif (($fp = @fopen($file, 'ab')) === FALSE)
+ elseif (($fp = @fopen($file, FOPEN_WRITE_CREATE_EOF)) === FALSE)
{
return FALSE;
}