diff options
author | Derick Rethans <derick@php.net> | 2002-06-28 06:43:17 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2002-06-28 06:43:17 +0000 |
commit | b24c24969c2c31908683c698be838a4056452ab7 (patch) | |
tree | 26c9715e4b80ccc0b288f9ed59977563bbe8a727 /ext/gd/gd_ctx.c | |
parent | 087f2be56f743cdddcabbf8e1b6cb18e9f6a85a3 (diff) | |
download | php-git-b24c24969c2c31908683c698be838a4056452ab7.tar.gz |
Unify error messages
Diffstat (limited to 'ext/gd/gd_ctx.c')
-rw-r--r-- | ext/gd/gd_ctx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/gd/gd_ctx.c b/ext/gd/gd_ctx.c index 3c599cab65..6c5f64b3d1 100644 --- a/ext/gd/gd_ctx.c +++ b/ext/gd/gd_ctx.c @@ -52,13 +52,13 @@ static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type, if ((argc == 2) || (argc == 3 && Z_STRLEN_PP(file))) { if (!fn || fn == empty_string || php_check_open_basedir(fn TSRMLS_CC)) { - php_error(E_WARNING, "%s: invalid filename '%s'", get_active_function_name(TSRMLS_C), fn); + php_error(E_WARNING, "%s(): Invalid filename '%s'", get_active_function_name(TSRMLS_C), fn); RETURN_FALSE; } fp = VCWD_FOPEN(fn, "wb"); if (!fp) { - php_error(E_WARNING, "%s: unable to open '%s' for writing", get_active_function_name(TSRMLS_C), fn); + php_error(E_WARNING, "%s(): Unable to open '%s' for writing", get_active_function_name(TSRMLS_C), fn); RETURN_FALSE; } @@ -79,7 +79,7 @@ static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type, switch(image_type) { case PHP_GDIMG_CONVERT_WBM: if(q<0||q>255) { - php_error(E_WARNING, "%s: invalid threshold value '%d'. It must be between 0 and 255",get_active_function_name(TSRMLS_C), q); + php_error(E_WARNING, "%s(): Invalid threshold value '%d'. It must be between 0 and 255",get_active_function_name(TSRMLS_C), q); } case PHP_GDIMG_TYPE_JPG: (*func_p)(im, ctx, q); |