summaryrefslogtreecommitdiff
path: root/ext/standard/image.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-08-24 01:19:28 +0000
committerMarcus Boerger <helly@php.net>2002-08-24 01:19:28 +0000
commit149ad05b4f35b595f281b6be2cb3521c4726e553 (patch)
treed70d81f4e077ddd7e66b3994373d4662bcf3a3e1 /ext/standard/image.c
parent928c4ad41daa7023528574c343f99934ef80089a (diff)
downloadphp-git-149ad05b4f35b595f281b6be2cb3521c4726e553.tar.gz
php_error_docref
#New conversion available at: http://docref.txt.marcus-boerger.de
Diffstat (limited to 'ext/standard/image.c')
-rw-r--r--ext/standard/image.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/image.c b/ext/standard/image.c
index 80815e79d0..352c4e69f5 100644
--- a/ext/standard/image.c
+++ b/ext/standard/image.c
@@ -805,7 +805,7 @@ PHPAPI int php_getimagetype(php_stream * stream, char *filetype TSRMLS_DC)
if ( !filetype) filetype = tmp;
if((php_stream_read(stream, filetype, 3)) <= 0) {
- php_error(E_WARNING, "%s(): Read error!", get_active_function_name(TSRMLS_C));
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Read error!");
return IMAGE_FILETYPE_UNKNOWN;
}
@@ -818,7 +818,7 @@ PHPAPI int php_getimagetype(php_stream * stream, char *filetype TSRMLS_DC)
if (!memcmp(filetype, php_sig_png, 8)) {
return IMAGE_FILETYPE_PNG;
} else {
- php_error(E_WARNING, "%s(): PNG file corrupted by ASCII conversion", get_active_function_name(TSRMLS_C));
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "PNG file corrupted by ASCII conversion");
return IMAGE_FILETYPE_UNKNOWN;
}
} else if (!memcmp(filetype, php_sig_swf, 3)) {
@@ -939,7 +939,7 @@ PHP_FUNCTION(getimagesize)
if (result) {
if (array_init(return_value) == FAILURE) {
- php_error(E_ERROR, "%s(): Unable to initialize array", get_active_function_name(TSRMLS_C));
+ php_error_docref(NULL TSRMLS_CC, E_ERROR, "Unable to initialize array");
efree(result);
return;
}