From: Pierre Joye Date: Sun, 25 Dec 2005 20:32:25 +0000 (+0000) Subject: - raise warning instread of errors in colormatch X-Git-Tag: RELEASE_1_0_4~232 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76f28deeebd1c53e4cc4e7c1ec329738c769c555;p=php - raise warning instread of errors in colormatch --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 3d1a0e9abd..23bfe00a70 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -811,19 +811,19 @@ PHP_FUNCTION(imagecolormatch) result = gdImageColorMatch(im1, im2); switch (result) { case -1: - php_error_docref(NULL TSRMLS_CC, E_ERROR, "Image1 must be TrueColor" ); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Image1 must be TrueColor" ); RETURN_FALSE; break; case -2: - php_error_docref(NULL TSRMLS_CC, E_ERROR, "Image2 must be Palette" ); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Image2 must be Palette" ); RETURN_FALSE; break; case -3: - php_error_docref(NULL TSRMLS_CC, E_ERROR, "Image1 and Image2 must be the same size" ); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Image1 and Image2 must be the same size" ); RETURN_FALSE; break; case -4: - php_error_docref(NULL TSRMLS_CC, E_ERROR, "Image2 must have at least one color" ); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Image2 must have at least one color" ); RETURN_FALSE; break; }