From 432e16cb58c76762d6b512f256f7e07d5c3857f4 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Fri, 7 Oct 2016 01:06:24 +0200 Subject: Unify error handling of bundled and external libgd There's no need anymore to call an own error handler directly. Instead we register our error handler and call libgd's error functions (which will forward). We do this regardless of compiling with the bundled or an external libgd. --- ext/gd/libgd/gd_xbm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/gd/libgd/gd_xbm.c') diff --git a/ext/gd/libgd/gd_xbm.c b/ext/gd/libgd/gd_xbm.c index b351814abb..68350d798a 100644 --- a/ext/gd/libgd/gd_xbm.c +++ b/ext/gd/libgd/gd_xbm.c @@ -149,7 +149,7 @@ gdImagePtr gdImageCreateFromXbm(FILE * fd) } } - php_gd_error("EOF before image was complete"); + gd_error("EOF before image was complete"); gdImageDestroy(im); return 0; } -- cgit v1.2.1