From 83694c8940fbad99293d03df20217b62b7e6c900 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Thu, 14 Jul 2016 15:38:25 +0000 Subject: [PATCH] Document #72596: imagetypes function won't advertise WEBP support git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339665 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/image/constants.xml | 12 ++++++++ reference/image/functions/imagetypes.xml | 35 +++++++++++++++++++++++- 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/reference/image/constants.xml b/reference/image/constants.xml index f76b25af95..81693281fb 100644 --- a/reference/image/constants.xml +++ b/reference/image/constants.xml @@ -153,6 +153,18 @@ + + + IMG_WEBP + (integer) + + + + Used as a return value by imagetypes. Available as of + PHP 5.6.25 and PHP 7.0.10, respectively. + + + IMG_COLOR_TILED diff --git a/reference/image/functions/imagetypes.xml b/reference/image/functions/imagetypes.xml index 19a26427bc..986ff5f6ff 100644 --- a/reference/image/functions/imagetypes.xml +++ b/reference/image/functions/imagetypes.xml @@ -22,7 +22,7 @@ version of GD linked into PHP. The following bits are returned, IMG_GIF | IMG_JPG | IMG_PNG | IMG_WBMP | - IMG_XPM. + IMG_XPM | IMG_WEBP. @@ -42,6 +42,39 @@ if (imagetypes() & IMG_PNG) { + + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 5.6.25, 7.0.10 + + IMG_WEBP added. + + + + + + + + + + &reftitle.seealso; + + + gd_info + + +