diff options
Diffstat (limited to 'UPGRADING')
-rw-r--r-- | UPGRADING | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -100,6 +100,11 @@ PHP 8.1 UPGRADE NOTES - Curl: . Added CURLOPT_DOH_URL option. + . Added CURLStringFile, which can be used to post a file from a string rather + than a file: + + $file = new CURLStringFile($data, 'filename.txt', 'text/plain'); + curl_setopt($curl, CURLOPT_POSTFIELDS, ['file' => $file]); - hash: . The following functions have changed signatures: |