diff --git a/PHP/proxy.php b/PHP/proxy.php index 53f174cc..9f18f4eb 100644 --- a/PHP/proxy.php +++ b/PHP/proxy.php @@ -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; + } } }