Ich habe einen cURL Upload bekommt, die von PHP 5,5-5,6 nach der Aktualisierung fehlschlägt:cURL Datei-Uploads nicht mehr funktioniert nach dem Upgrade von PHP 5,5-5,6
$aPost = array(
'file' => "@".$localFile,
'default_file' => 'html_version.html',
'expiration' => (2*31*24*60*60)
)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $apiurl);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_BUFFERSIZE, 128);
curl_setopt($ch, CURLOPT_POSTFIELDS, $aPost);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$sResponse = curl_exec ($ch);
Die Datei auf dem Zielsystem leer zu sein scheint .
Wie haben Sie ein Upgrade durchgeführt? War das Curl-Modul im Update enthalten? Welches OS ist das? Haben Sie andere Ursachen für das Problem beseitigt? – symcbean
Ja, Curl funktioniert - Dateien sind leer (die Zeichenfolge wird aber an das Zielsystem anstatt an die Datei gesendet). OS ist CentOS, das zwischen den Updates nicht geändert hat. – bardiir
(füge meinen Kommentar hinzu, da Sie Ihre Antwort hinzugefügt haben) – symcbean