pajoye Mon Jul 30 21:44:53 2007 UTC Modified files: /php-src/ext/gd gd.c Log: - MFB: - fix gd bug #102, < 0 means that no load are loaded, return false - add error code in the warning http://cvs.php.net/viewvc.cgi/php-src/ext/gd/gd.c?r1=1.378&r2=1.379&diff_format=u Index: php-src/ext/gd/gd.c diff -u php-src/ext/gd/gd.c:1.378 php-src/ext/gd/gd.c:1.379 --- php-src/ext/gd/gd.c:1.378 Wed Jun 6 09:43:39 2007 +++ php-src/ext/gd/gd.c Mon Jul 30 21:44:53 2007 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.378 2007/06/06 09:43:39 tony2001 Exp $ */ +/* $Id: gd.c,v 1.379 2007/07/30 21:44:53 pajoye Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ @@ -3825,7 +3825,8 @@ f_ind = T1_AddFont(filename); if (f_ind < 0) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "T1Lib Error: %s", T1_StrError(f_ind)); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "T1Lib Error (%i): %s", f_ind, T1_StrError(f_ind)); + RETURN_FALSE; } if (T1_LoadFont(f_ind)) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php