Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #365 from Esri/attachments-5.6
Browse files Browse the repository at this point in the history
Support attachments for php5.6+, #364
  • Loading branch information
bsvensson authored Feb 5, 2018
2 parents 2145c2b + a5c1237 commit 2353719
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions PHP/proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -1173,10 +1173,13 @@ public function proxyFiles()

rename($file["tmp_name"], $this->unlinkPath);

$this->proxyData[$key] = "@" . $this->unlinkPath;

$query_array[$key] = "@" . $this->unlinkPath;

if (version_compare(PHP_VERSION, '5.6.0') >= 0) {
$this->proxyData[$key] = new CURLFile($this->unlinkPath);
$query_array[$key] = new CURLFile($this->unlinkPath);
} else {
$this->proxyData[$key] = "@" . $this->unlinkPath;
$query_array[$key] = "@" . $this->unlinkPath;
}
}

}
Expand Down

0 comments on commit 2353719

Please sign in to comment.