summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-10-29 11:56:46 +0000
committerMarcus Boerger <helly@php.net>2002-10-29 11:56:46 +0000
commit51ed05cc3d4e466c38ae9ddab27ce99ae164fafe (patch)
treec5cf75c8f655abafe7ab6a6f0772a84cbb38571d
parent65222ddfb33360f5f27992bdc6750be2e303c81c (diff)
downloadphp-git-51ed05cc3d4e466c38ae9ddab27ce99ae164fafe.tar.gz
-php_error => php_error_docref
-rw-r--r--ext/iconv/iconv.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c
index cb50457932..b5b999deb9 100644
--- a/ext/iconv/iconv.c
+++ b/ext/iconv/iconv.c
@@ -321,35 +321,29 @@ static void _php_iconv_show_error(php_iconv_err_t err, const char *in_charset, c
{
switch (err) {
case PHP_ICONV_ERR_CONVERTER:
- php_error(E_NOTICE, "%s(): Cannot open converter",
- get_active_function_name(TSRMLS_C));
+ php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Cannot open converter");
break;
case PHP_ICONV_ERR_WRONG_CHARSET:
- php_error(E_NOTICE, "%s(): Wrong charset, cannot convert from `%s' to `%s'",
- get_active_function_name(TSRMLS_C),
+ php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Wrong charset, cannot convert from `%s' to `%s'",
in_charset, out_charset);
break;
case PHP_ICONV_ERR_ILLEGAL_CHAR:
- php_error(E_NOTICE, "%s(): Detected incomplete character in input string",
- get_active_function_name(TSRMLS_C));
+ php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Detected incomplete character in input string");
break;
case PHP_ICONV_ERR_ILLEGAL_SEQ:
- php_error(E_NOTICE, "%s(): Detected illegal character in input string",
- get_active_function_name(TSRMLS_C));
+ php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Detected illegal character in input string");
break;
case PHP_ICONV_ERR_TOO_BIG:
/* should not happen */
- php_error(E_WARNING, "%s(): Run out buffer",
- get_active_function_name(TSRMLS_C));
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Run out buffer");
break;
default:
/* other error */
- php_error(E_NOTICE, "%s(): Unknown error (%d)",
- get_active_function_name(TSRMLS_C), errno);
+ php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Unknown error (%d)", errno);
break;
}
}