Fixes for BIG-12858

Applied fixes to PHP Library as described here
Is the actual issue that we're setting `CURLOPT_PUT` above?

It's defined as:
> TRUE to HTTP PUT a file. The file to PUT must be set with CURLOPT_INFILE and CURLOPT_INFILESIZE.

If we just set `CURLOPT_CUSTOMREQUEST` to `PUT` instead, would that resolve the issue without needing this?