diff options
author | Christoph M. Becker <cmb@php.net> | 2016-07-14 17:26:32 +0200 |
---|---|---|
committer | Christoph M. Becker <cmb@php.net> | 2016-07-14 17:31:03 +0200 |
commit | 5aaffb79084ba929675a7e8543f91ff324439939 (patch) | |
tree | 8b63df34f0fe6de4b3002d5928a51df404df32fd /ext/gd/gd.c | |
parent | e3e400c983d91af84e57c5c8402260ac84ec5459 (diff) | |
parent | 5829458215597058c54189b951e0c923deaeaf9b (diff) | |
download | php-git-5aaffb79084ba929675a7e8543f91ff324439939.tar.gz |
Merge branch 'PHP-7.0'
Diffstat (limited to 'ext/gd/gd.c')
-rw-r--r-- | ext/gd/gd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c index a1fe114531..a8ed6309df 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -1047,6 +1047,7 @@ PHP_MINIT_FUNCTION(gd) REGISTER_LONG_CONSTANT("IMG_PNG", 4, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("IMG_WBMP", 8, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("IMG_XPM", 16, CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("IMG_WEBP", 32, CONST_CS | CONST_PERSISTENT); /* special colours for gd */ REGISTER_LONG_CONSTANT("IMG_COLOR_TILED", gdTiled, CONST_CS | CONST_PERSISTENT); @@ -2124,6 +2125,9 @@ PHP_FUNCTION(imagetypes) #if defined(HAVE_GD_XPM) ret |= 16; #endif +#ifdef HAVE_GD_WEBP + ret |= 32; +#endif if (zend_parse_parameters_none() == FAILURE) { return; |