com php-src: Fix #74744: gd.h: stdarg.h include missing for va_list use in gdErrorMethod: NEWS ext/gd/libgd/g d.h

From: Date: Sun, 11 Jun 2017 15:17:01 +0000
Subject: com php-src: Fix #74744: gd.h: stdarg.h include missing for va_list use in gdErrorMethod: NEWS ext/gd/libgd/g d.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-98049@lists.php.net to get a copy of this message
Commit: 68a0639c8f5afae87773e70cefcf706c6013e599 Author: Christoph M. Becker <cmbecker69@gmx.de> Sun, 11 Jun 2017 17:17:01 +0200 Parents: bec91e1117fd3527897cde2f8a26eab9a20fa3dc Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=68a0639c8f5afae87773e70cefcf706c6013e599 Log: Fix #74744: gd.h: stdarg.h include missing for va_list use in gdErrorMethod Bugs: https://bugs.php.net/74744 Changed paths: M NEWS M ext/gd/libgd/gd.h Diff: diff --git a/NEWS b/NEWS index 087d0b8..3ca05d3 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,10 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? ????, PHP 7.2.0alpha2 +- GD: + . Fixed bug #74744 (gd.h: stdarg.h include missing for va_list use in + gdErrorMethod). (rainer dot jung at kippdata dot de, cmb) + - OpenSSL: . Fixed bug #74720 (pkcs7_en/decrypt does not work if \x1a is used in content). (Anatol) diff --git a/ext/gd/libgd/gd.h b/ext/gd/libgd/gd.h index 298599b..940650e 100644 --- a/ext/gd/libgd/gd.h +++ b/ext/gd/libgd/gd.h @@ -46,6 +46,18 @@ extern "C" { #include <stdio.h> #include "gd_io.h" +/* va_list needed in gdErrorMethod */ +#ifdef PHP_WIN32 +# include <stdarg.h> +#else +# if HAVE_STDARG_H +# include <stdarg.h> +# else +# if HAVE_SYS_VARARGS_H +# include <sys/varargs.h> +# endif +# endif +#endif /* The maximum number of palette entries in palette-based images. In the wonderful new world of gd 2.0, you can of course have

« previous php.cvs (#98049) next »