php-src/ext/gd/tests/bug70047.phpt
Christoph M. Becker 450fbdc740 Fix #70047: gd_info() doesn't report WebP support
Despite being documented, the array returned by gd_info() doesn't have a 'WebP
Support' key. This patch adds it.
2015-07-11 17:49:13 +02:00

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)