pajoye Sun Dec 25 20:32:25 2005 EDT
Modified files:
/php-src/ext/gd gd.c
Log:
- raise warning instread of errors in colormatch
http://cvs.php.net/viewcvs.cgi/php-src/ext/gd/gd.c?r1=1.330&r2=1.331&diff_format=u
Index: php-src/ext/gd/gd.c
diff -u php-src/ext/gd/gd.c:1.330 php-src/ext/gd/gd.c:1.331
--- php-src/ext/gd/gd.c:1.330 Sun Dec 25 19:21:57 2005
+++ php-src/ext/gd/gd.c Sun Dec 25 20:32:25 2005
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gd.c,v 1.330 2005/12/25 19:21:57 pajoye Exp $ */
+/* $Id: gd.c,v 1.331 2005/12/25 20:32:25 pajoye Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
@@ -811,19 +811,19 @@
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;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php