|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
7 + 6 = ?
Subscribe to this entry?

 [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 Sep 23 20:01:27 2020 UTC