Skip to content

Commit

Permalink
Fix #74744: gd.h: stdarg.h include missing for va_list use in gdError…
Browse files Browse the repository at this point in the history
…Method
  • Loading branch information
cmb69 committed Jun 11, 2017
1 parent bec91e1 commit 68a0639
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
12 changes: 12 additions & 0 deletions ext/gd/libgd/gd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 68a0639

Please sign in to comment.