summaryrefslogtreecommitdiff
path: root/ext/recode
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-01-19 00:45:53 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-01-19 00:45:53 +0000
commit3d8e54f3a2f72eeaf22a5ffd66a7e5465f60127c (patch)
tree1784e782a671b83758c0c836088026f73897c0ef /ext/recode
parentadd3ec4e0ba076db7cdece4bfdb852b8333e198d (diff)
downloadphp-git-3d8e54f3a2f72eeaf22a5ffd66a7e5465f60127c.tar.gz
Changed php_error to php_error_docref.
Diffstat (limited to 'ext/recode')
-rw-r--r--ext/recode/recode.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/recode/recode.c b/ext/recode/recode.c
index c1aaee7380..81d0e9aafc 100644
--- a/ext/recode/recode.c
+++ b/ext/recode/recode.c
@@ -143,19 +143,19 @@ PHP_FUNCTION(recode_string)
request = recode_new_request(ReSG(outer));
if (request == NULL) {
- php_error(E_WARNING, "Cannot allocate request structure");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot allocate request structure");
RETURN_FALSE;
}
success = recode_scan_request(request, Z_STRVAL_PP(req));
if (!success) {
- php_error(E_WARNING, "Illegal recode request '%s'", Z_STRVAL_PP(req));
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Illegal recode request '%s'", Z_STRVAL_PP(req));
goto error_exit;
}
recode_buffer_to_buffer(request, Z_STRVAL_PP(str), Z_STRLEN_PP(str), &r, &r_len, &r_alen);
if (!r) {
- php_error(E_WARNING, "Recoding failed.");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Recoding failed.");
goto error_exit;
}
@@ -204,19 +204,19 @@ PHP_FUNCTION(recode_file)
request = recode_new_request(ReSG(outer));
if (request == NULL) {
- php_error(E_WARNING, "Cannot allocate request structure");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot allocate request structure");
RETURN_FALSE;
}
success = recode_scan_request(request, Z_STRVAL_PP(req));
if (!success) {
- php_error(E_WARNING, "Illegal recode request '%s'", Z_STRVAL_PP(req));
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Illegal recode request '%s'", Z_STRVAL_PP(req));
goto error_exit;
}
success = recode_file_to_file(request, in_fp, out_fp);
if (!success) {
- php_error(E_WARNING, "Recoding failed.");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Recoding failed.");
goto error_exit;
}