summaryrefslogtreecommitdiff
path: root/ext/curl/php_curl.h
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2000-08-13 19:32:09 +0000
committerSterling Hughes <sterling@php.net>2000-08-13 19:32:09 +0000
commitbba7086ac39416c312300f65766187b99fa047d7 (patch)
tree1f1f7ea092a4b93fd7425e3189ecb5aabb51c620 /ext/curl/php_curl.h
parent6f8f6c521c6fc8a223fbacffc96eca42ce38f76e (diff)
downloadphp-git-bba7086ac39416c312300f65766187b99fa047d7.tar.gz
- Fix spacing.
- Add error constants.
Diffstat (limited to 'ext/curl/php_curl.h')
-rw-r--r--ext/curl/php_curl.h60
1 files changed, 53 insertions, 7 deletions
diff --git a/ext/curl/php_curl.h b/ext/curl/php_curl.h
index 0f82b27bc5..10248f9cb3 100644
--- a/ext/curl/php_curl.h
+++ b/ext/curl/php_curl.h
@@ -31,14 +31,60 @@
extern zend_module_entry curl_module_entry;
#define curl_module_ptr &curl_module_entry
-PHP_MINIT_FUNCTION (curl);
-PHP_MINFO_FUNCTION (curl);
-PHP_FUNCTION (curl_version);
-PHP_FUNCTION (curl_init);
-PHP_FUNCTION (curl_setopt);
-PHP_FUNCTION (curl_exec);
-PHP_FUNCTION (curl_close);
+PHP_MINIT_FUNCTION(curl);
+PHP_MINFO_FUNCTION(curl);
+PHP_FUNCTION(curl_version);
+PHP_FUNCTION(curl_init);
+PHP_FUNCTION(curl_setopt);
+PHP_FUNCTION(curl_exec);
+PHP_FUNCTION(curl_close);
+#define CE_OK 0
+#define CE_UNSUPPORTED_PROTOCOL 1
+#define CE_FAILED_INIT 2
+#define CE_URL_MALFORMAT 3
+#define CE_URL_MALFORMAT_USER 4
+#define CE_COULDNT_RESOLVE_PROXY 5
+#define CE_COULDNT_RESOLVE_HOST 6
+#define CE_COULDNT_CONNECT 7
+#define CE_FTP_WEIRD_SERVER_REPLY 8
+#define CE_FTP_ACCESS_DENIED 9
+#define CE_FTP_USER_PASSWORD_INCORRECT 10
+#define CE_FTP_WEIRD_PASS_REPLY 11
+#define CE_FTP_WEIRD_USER_REPLY 12
+#define CE_FTP_WEIRD_PASV_REPLY 13
+#define CE_FTP_WEIRD_227_FORMAT 14
+#define CE_FTP_CANT_GET_HOST 15
+#define CE_FTP_CANT_RECONNECT 16
+#define CE_FTP_COULDNT_SET_BINARY 17
+#define CE_PARTIAL_FILE 18
+#define CE_FTP_COULDNT_RETR_FILE 19
+#define CE_FTP_WRITE_ERROR 20
+#define CE_FTP_QUOTE_ERROR 21
+#define CE_HTTP_NOT_FOUND 22
+#define CE_WRITE_ERROR 23
+#define CE_MALFORMAT_USER 24
+#define CE_FTP_COULDNT_STOR_FILE 25
+#define CE_READ_ERROR 26
+#define CE_OUT_OF_MEMORY 27
+#define CE_OPERATION_TIMEOUTED 28
+#define CE_FTP_COULDNT_SET_ASCII 29
+#define CE_FTP_PORT_FAILED 30
+#define CE_FTP_COULDNT_USE_REST 31
+#define CE_FTP_COULDNT_GET_SIZE 32
+#define CE_HTTP_RANGE_ERROR 33
+#define CE_HTTP_POST_ERROR 34
+#define CE_SSL_CONNECT_ERROR 35
+#define CE_FTP_BAD_DOWNLOAD_RESUME 36
+#define CE_FILE_COULDNT_READ_FILE 37
+#define CE_LDAP_CANNOT_BIND 38
+#define CE_LDAP_SEARCH_FAILED 39
+#define CE_LIBRARY_NOT_FOUND 40
+#define CE_FUNCTION_NOT_FOUND 41
+#define CE_ABORTED_BY_CALLBACK 42
+#define CE_BAD_FUNCTION_ARGUMENT 43
+#define CE_BAD_CALLING_ORDER 44
+#define C_LAST 45
typedef struct {
int le_curl;