cvs: php4 /ext/curl curl.c
| From: | Derick Rethans | Date: | Wed, 26 Jun 2002 07:19:34 +0000 |
| Subject: | cvs: php4 /ext/curl curl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12529@lists.php.net to get a copy of this message | ||
derick Wed Jun 26 03:19:34 2002 EDT
Modified files:
/php4/ext/curl curl.c
Log:
Unify error messages
Index: php4/ext/curl/curl.c
diff -u php4/ext/curl/curl.c:1.111 php4/ext/curl/curl.c:1.112
--- php4/ext/curl/curl.c:1.111 Wed Apr 3 18:59:36 2002
+++ php4/ext/curl/curl.c Wed Jun 26 03:19:33 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: curl.c,v 1.111 2002/04/03 23:59:36 sterling Exp $ */
+/* $Id: curl.c,v 1.112 2002/06/26 07:19:33 derick Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -318,7 +318,7 @@
t->func,
retval, 2, argv TSRMLS_CC);
if (error == FAILURE) {
- php_error(E_WARNING, "Couldn't call the CURLOPT_WRITEFUNCTION");
+ php_error(E_WARNING, "%s(): Couldn't call the CURLOPT_WRITEFUNCTION",
get_active_function_name(TSRMLS_C));
length = -1;
}
else {
@@ -372,7 +372,7 @@
t->func,
retval, 3, argv TSRMLS_CC);
if (error == FAILURE) {
- php_error(E_WARNING, "Cannot call the CURLOPT_READFUNCTION");
+ php_error(E_WARNING, "%s(): Cannot call the CURLOPT_READFUNCTION",
get_active_function_name(TSRMLS_C));
length = -1;
}
else {
@@ -431,7 +431,7 @@
t->func,
retval, 2, argv TSRMLS_CC);
if (error == FAILURE) {
- php_error(E_WARNING, "Couldn't call the CURLOPT_HEADERFUNCTION");
+ php_error(E_WARNING, "%s(): Couldn't call the CURLOPT_HEADERFUNCTION",
get_active_function_name(TSRMLS_C));
length = -1;
}
else {
@@ -475,12 +475,12 @@
func,
retval, 2, argv TSRMLS_CC);
if (error == FAILURE) {
- php_error(E_WARNING, "Couldn't call the CURLOPT_PASSWDFUNCTION");
+ php_error(E_WARNING, "%s(): Couldn't call the CURLOPT_PASSWDFUNCTION",
get_active_function_name(TSRMLS_C));
ret = -1;
}
else {
if (Z_STRLEN_P(retval) > buflen) {
- php_error(E_WARNING, "Returned password is too long for libcurl to handle");
+ php_error(E_WARNING, "%s(): Returned password is too long for libcurl to handle",
get_active_function_name(TSRMLS_C));
ret = -1;
}
else {
@@ -570,7 +570,7 @@
ch->cp = curl_easy_init();
if (! ch->cp) {
- php_error(E_WARNING, "Cannot initialize a new cURL handle");
+ php_error(E_WARNING, "%s(): Cannot initialize a new cURL handle",
get_active_function_name(TSRMLS_C));
RETURN_FALSE;
}
@@ -771,7 +771,7 @@
postfields = HASH_OF(*zvalue);
if (! postfields) {
- php_error(E_WARNING, "Couldn't get HashTable in CURLOPT_POSTFIELDS");
+ php_error(E_WARNING, "%s(): Couldn't get HashTable in CURLOPT_POSTFIELDS",
get_active_function_name(TSRMLS_C));
RETURN_FALSE;
}
@@ -827,8 +827,8 @@
ph = HASH_OF(*zvalue);
if (! ph) {
php_error(E_WARNING,
- "You must pass either an object or an array with the CURLOPT_HTTPHEADER,"
- "CURLOPT_QUOTE and CURLOPT_POSTQUOTE arguments");
+ "%s(): You must pass either an object or an array with the
CURLOPT_HTTPHEADER,"
+ "CURLOPT_QUOTE and CURLOPT_POSTQUOTE arguments",
get_active_function_name(TSRMLS_C));
RETURN_FALSE;
}
@@ -844,7 +844,7 @@
slist = curl_slist_append(slist, indiv);
if (! slist) {
efree(indiv);
- php_error(E_WARNING, "Couldn't build curl_slist from curl_setopt()");
+ php_error(E_WARNING, "%s(): Couldn't build curl_slist",
get_active_function_name(TSRMLS_C));
RETURN_FALSE;
}
zend_llist_add_element(&ch->to_free.str, &indiv);