|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28196 there are 10 curl errors with no PHP constants
Submitted: 2004-04-28 00:05 UTC Modified: 2004-04-29 18:26 UTC
From: blue at anonix dot net Assigned:
Status: Closed Package: cURL related
PHP Version: 4.3.6 OS: OpenBSD
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: blue at anonix dot net
New email:
PHP Version: OS:


 [2004-04-28 00:05 UTC] blue at anonix dot net
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 */


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-29 18:26 UTC]
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
Thank you for the report, and for helping us make PHP better.

 [2004-04-30 08:15 UTC] daniel at haxx dot se
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.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Oct 28 15:01:23 2020 UTC