mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +00:00
450fbdc740
Despite being documented, the array returned by gd_info() doesn't have a 'WebP Support' key. This patch adds it.
16 lines
336 B
PHP
16 lines
336 B
PHP
--TEST--
|
|
Bug #70047 (gd_info() doesn't report WebP support)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('gd')) die('skip gd extension not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$info = gd_info();
|
|
var_dump(array_key_exists('WebP Support', $info));
|
|
var_dump($info['WebP Support'] === function_exists('imagewebp'));
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(true)
|