#28196 [Com]: there are 10 curl errors with no PHP constants
| From: | daniel at haxx dot se | Date: | Fri, 30 Apr 2004 06:15:07 +0000 |
| Subject: | #28196 [Com]: there are 10 curl errors with no PHP constants | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-59051@lists.php.net to get a copy of this message | ||
ID: 28196
Comment by: daniel at haxx dot se
Reported By: blue at anonix dot net
Status: Closed
Bug Type: cURL related
Operating System: OpenBSD
PHP Version: 4.3.6
New Comment:
The error codes in libcurl are made up with an enum, you therefore
cannot use #ifdef [code] like your attempted fix does. Those symbols
will never be defined and thus will be missed in all version,
regardless of what libcurl version that is installed.
Previous Comments:
------------------------------------------------------------------------
[2004-04-29 18:26:02] iliaa@php.net
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.
------------------------------------------------------------------------
[2004-04-28 00:05:35] blue at anonix dot net
Description:
------------
there are 10 curl errors with no PHP constants:
(from curl.h)
CURLE_GOT_NOTHING, /* 52 - when this is a specific error
*/
CURLE_SSL_ENGINE_NOTFOUND, /* 53 - SSL crypto engine not found */
CURLE_SSL_ENGINE_SETFAILED, /* 54 - can not set SSL crypto engine as
default */
CURLE_SEND_ERROR, /* 55 - failed sending network data */
CURLE_RECV_ERROR, /* 56 - failure in receiving network
data */
CURLE_SHARE_IN_USE, /* 57 - share is in use */
CURLE_SSL_CERTPROBLEM, /* 58 - problem with the local
certificate */
CURLE_SSL_CIPHER, /* 59 - couldn't use specified cipher
*/
CURLE_SSL_CACERT, /* 60 - problem with the CA cert (path?)
*/
CURLE_BAD_CONTENT_ENCODING, /* 61 - Unrecognized transfer encoding
*/
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28196&edit=1