summaryrefslogtreecommitdiff
path: root/ext/gd/tests/bug70047.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gd/tests/bug70047.phpt')
-rw-r--r--ext/gd/tests/bug70047.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/gd/tests/bug70047.phpt b/ext/gd/tests/bug70047.phpt
new file mode 100644
index 0000000000..7dbf8ab59d
--- /dev/null
+++ b/ext/gd/tests/bug70047.phpt
@@ -0,0 +1,15 @@
+--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)