Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
fixed missing const argument, when passed magic_file argument fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
sasezaki committed Mar 24, 2013
1 parent ac4bd95 commit 937b200
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library/Zend/File/Transfer/Adapter/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ protected function detectMimeType($value)

if (empty($mime)) {
ErrorHandler::start();
$mime = finfo_open($const);
$mime = finfo_open(FILEINFO_MIME_TYPE);
ErrorHandler::stop();
}

Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Validator/File/ExcludeMimeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function isValid($value, $file = null)
}

if (empty($this->finfo)) {
$this->finfo = finfo_open($const);
$this->finfo = finfo_open(FILEINFO_MIME_TYPE);
}

$this->type = null;
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Validator/File/MimeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ public function isValid($value, $file = null)

if (empty($this->finfo)) {
ErrorHandler::start(E_NOTICE|E_WARNING);
$this->finfo = finfo_open($const);
$this->finfo = finfo_open(FILEINFO_MIME_TYPE);
ErrorHandler::stop();
}

Expand Down

0 comments on commit 937b200

Please sign in to comment.