Skip to content

Commit

Permalink
support PHP 5.3 for ConfigTest
Browse files Browse the repository at this point in the history
change fopen logic
  • Loading branch information
akaNightmare authored and Ivan Zubok committed Nov 13, 2014
1 parent b116fe2 commit e8f7732
Show file tree
Hide file tree
Showing 2 changed files with 203 additions and 202 deletions.
8 changes: 4 additions & 4 deletions phalcon/translate/adapter/csv.zep
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ class Csv extends Adapter implements AdapterInterface, \ArrayAccess
"enclosure": "\""
], options);

if is_readable(options["content"]) === false {
throw new Exception("Error opening translation file '" . options["content"] . "'");
}

var file;
let file = fopen(options["content"], "rb");

if typeof file !== "resource" {
throw new Exception("Error opening translation file '" . options["content"] . "'");
}

var data;

loop {
Expand Down
Loading

0 comments on commit e8f7732

Please sign in to comment.