diff options
author | Andrey Andreev <narf@devilix.net> | 2014-03-13 13:55:45 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-03-13 13:55:45 +0100 |
commit | 7cf682abf46bcaa112b63c500a884ba25c0dd8b3 (patch) | |
tree | ec4283976055d986add2da7b0dad16c1e75dcba5 /system/libraries/Zip.php | |
parent | d2e3a6fbf820b819bd7b2abc4794766f4c1d4e1a (diff) |
Partially revert PR #2190
The core shouldn't depend on constants that are not defined by itself
Diffstat (limited to 'system/libraries/Zip.php')
-rw-r--r-- | system/libraries/Zip.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Zip.php b/system/libraries/Zip.php index 43abfba42..c634b1133 100644 --- a/system/libraries/Zip.php +++ b/system/libraries/Zip.php @@ -398,7 +398,7 @@ class CI_Zip { */ public function archive($filepath) { - if ( ! ($fp = @fopen($filepath, FOPEN_WRITE_CREATE_DESTRUCTIVE))) + if ( ! ($fp = @fopen($filepath, 'w+b'))) { return FALSE; } |