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 ["GIF Read Support"]=> 32 bool(%s) 33 ["GIF Create Support"]=> 34 bool(%s) 35 ["JPEG Support"]=> 36 bool(%s) 37 ["PNG Support"]=> 38 bool(%s) 39 ["WBMP Support"]=> 40 bool(%s) 41 ["XPM Support"]=> 42 bool(%s) 43 ["XBM Support"]=> 44 bool(%s) 45 ["WebP Support"]=> 46 bool(%s) 47 ["BMP Support"]=> 48 bool%a 49 ["JIS-mapped Japanese Font Support"]=> 50 bool(%s) 51} 52===DONE=== 53