Bug #70410 [Opn->Fbk]: Wrong value for 'upload_content_length'

From: Date: Wed, 02 Sep 2015 15:04:06 +0000
Subject: Bug #70410 [Opn->Fbk]: Wrong value for 'upload_content_length'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195707@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70410&edit=1 ID: 70410 Updated by: cmb@php.net Reported by: marco dot marsala at live dot it Summary: Wrong value for 'upload_content_length' -Status: Open +Status: Feedback Type: Bug Package: HTTP related Operating System: CentOS 6 PHP Version: 5.4.44 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: The different behavior may be caused by different libcurl versions (and not directly be related to PHP). Which libcurl version(s) do you use (see e.g. PHP info)? Previous Comments: ------------------------------------------------------------------------ [2015-09-02 13:24:26] marco dot marsala at live dot it Description: ------------ In PHP 5.4.44 curl_getinfo($ch) for a POST request, returns an array where 'upload_content_length' is equal to the length of the post fields string. In PHP 5.3 'upload_content_length' is float(0) but 'size_upload' assumes that value. Seems that the behavior of PHP 5.3 is correct and PHP 5.4 is wrong (but maybe the opposite). This should be fixed or pointed out in the documentation as this glitch broken my script while downgrading php. --- From manual page: http://www.php.net/function.curl-getinfo --- ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70410&edit=1

« previous php.bugs (#195707) next »