1--TEST--
2Test gd_info() function : variation - Checking all the values in returned array
3--SKIPIF--
4<?php
5if(!extension_loaded('gd')) {
6    die('skip gd extension is not loaded');
7}
8if(!function_exists('gd_info')) {
9    die('skip gd_info function is not available');
10}
11?>
12--FILE--
13<?php
14/* Prototype  : array gd_info()
15 * Description: Retrieve information about the currently installed GD library
16 * Source code: ext/gd/gd.c
17 */
18
19echo "*** Testing gd_info() : variation ***\n";
20
21var_dump(gd_info());
22?>
23===DONE===
24--EXPECTF--
25*** Testing gd_info() : variation ***
26array(%d) {
27  ["GD Version"]=>
28  string(%d) %s
29  ["FreeType Support"]=>
30  bool(%a
31  ["T1Lib Support"]=>
32  bool(%s)
33  ["GIF Read Support"]=>
34  bool(%s)
35  ["GIF Create Support"]=>
36  bool(%s)
37  ["JPEG Support"]=>
38  bool(%s)
39  ["PNG Support"]=>
40  bool(%s)
41  ["WBMP Support"]=>
42  bool(%s)
43  ["XPM Support"]=>
44  bool(%s)
45  ["XBM Support"]=>
46  bool(%s)
47  ["WebP Support"]=>
48  bool(%s)
49  ["JIS-mapped Japanese Font Support"]=>
50  bool(%s)
51}
52===DONE===