ID: 46739 Updated by: [EMAIL PROTECTED] Reported By: thomas at koch dot ro -Status: Open +Status: Closed Bug Type: cURL related Operating System: Debian Lenny PHP Version: 5.3CVS-2008-12-03 (CVS) New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2008-12-03 14:53:30] thomas at koch dot ro Description: ------------ The docu[1] states, that the array returned by curl_getinfo contains a key 'content_type'. But this is not the case, if there has been a connection error. [1] http://www.php.net/manual/en/function.curl-getinfo.php Reproduce code: --------------- $ch = curl_init('xyz'); curl_exec( $ch ); $curlInfo = curl_getinfo( $ch ); var_dump( $curlInfo['content_type'] ); Expected result: ---------------- NULL Actual result: -------------- Notice: Undefined index: content_type in /home/ymc-toko/curl_bug.php on line 7 NULL ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46739&edit=1
