note 93950 added to curl.constants

From: Date: Thu, 08 Oct 2009 09:17:42 +0000
Subject: note 93950 added to curl.constants
Groups: php.notes 
Request: Send a blank email to php-notes+get-161499@lists.php.net to get a copy of this message
Beware of CURLE_* constants! On the official site: http://curl.haxx.se/libcurl/c/libcurl-errors.html some constants are different, some missing compared to the PHP implementation. Some examples: in PHP the curl error number 28 is called CURLE_OPERATION_TIMEOUTED while in the official site is: CURLE_OPERATION_TIMEDOUT So if you use the second, it won't march the error 28 because in PHP it is not defined that way. The same is for these: CURLE_HTTP_RETURNED_ERROR CURLE_UPLOAD_FAILED CURLE_INTERFACE_FAILED CURLE_SSL_CERTPROBLEM CURLE_SEND_FAIL_REWIND CURLE_LOGIN_DENIED CURLE_AGAIN that are in someway named differently or missing from PHP. ---- Server IP: 69.147.83.197 Probable Submitter: 217.72.97.197 ---- Manual Page -- http://www.php.net/manual/en/curl.constants.php Edit -- https://master.php.net/note/edit/93950 Del: integrated -- https://master.php.net/note/delete/93950/integrated Del: useless -- https://master.php.net/note/delete/93950/useless Del: bad code -- https://master.php.net/note/delete/93950/bad+code Del: spam -- https://master.php.net/note/delete/93950/spam Del: non-english -- https://master.php.net/note/delete/93950/non-english Del: in docs -- https://master.php.net/note/delete/93950/in+docs Del: other reasons-- https://master.php.net/note/delete/93950 Reject -- https://master.php.net/note/reject/93950 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#161499) next »