summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/gd/gd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 834e2b7501..f880b69905 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -4363,7 +4363,8 @@ PHP_FUNCTION(imagepsloadfont)
f_ind = T1_AddFont(Z_STRVAL_PP(file));
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)) {