Skip to content

Commit

Permalink
fix case cannot pass on php53
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertYue19900425 committed Mar 7, 2017
1 parent aab611b commit 0b0cf6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/OSS/OssClient.php
Expand Up @@ -1001,9 +1001,9 @@ public function putObject($bucket, $object, $content, $options = NULL)
$result = new CallbackResult($response);
} else {
$result = new PutSetDeleteResult($response);
// if ($this->isEnableCrc64) {
// $this->checkCrc64($this->crc64Sum, $result->getData()['x-oss-hash-crc64ecma']);
// }
if ($this->isEnableCrc64) {
$this->checkCrc64($this->crc64Sum, $result->getServerCrc64());
}
}
if (isset($options[self::OSS_PROGRESS_CALLBACK])) {
call_user_func($options[self::OSS_PROGRESS_CALLBACK], $options[self::OSS_CONTENT_LENGTH], $options[self::OSS_CONTENT_LENGTH]);
Expand Down Expand Up @@ -1046,7 +1046,7 @@ public function uploadFile($bucket, $object, $file, $options = NULL)
$response = $this->auth($options);
$result = new PutSetDeleteResult($response);
if ($this->isEnableCrc64) {
$this->checkCrc64($this->crc64Sum, $result->getData()['x-oss-hash-crc64ecma']);
$this->checkCrc64($this->crc64Sum, $result->getServerCrc64());
}
return $result->getData();
}
Expand Down

0 comments on commit 0b0cf6b

Please sign in to comment.