mirror of
https://github.com/php/php-src.git
synced 2024-09-29 05:46:06 +00:00
8bb3bd04a9
We add the constant IMG_WEBP and make sure that WebP support is properly reported by imagetypes().
13 lines
277 B
PHP
13 lines
277 B
PHP
--TEST--
|
|
Bug #72596 (imagetypes function won't advertise WEBP support)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('gd')) die('skip gd extension not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
var_dump(function_exists('imagewebp') === (bool) (imagetypes() & IMG_WEBP));
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|