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 14echo "*** Testing gd_info() : variation ***\n"; 15 16var_dump(gd_info()); 17?> 18--EXPECTF-- 19*** Testing gd_info() : variation *** 20array(%d) { 21 ["GD Version"]=> 22 string(%d) %s 23 ["FreeType Support"]=> 24 bool(%a 25 ["GIF Read Support"]=> 26 bool(%s) 27 ["GIF Create Support"]=> 28 bool(%s) 29 ["JPEG Support"]=> 30 bool(%s) 31 ["PNG Support"]=> 32 bool(%s) 33 ["WBMP Support"]=> 34 bool(%s) 35 ["XPM Support"]=> 36 bool(%s) 37 ["XBM Support"]=> 38 bool(%s) 39 ["WebP Support"]=> 40 bool(%s) 41 ["BMP Support"]=> 42 bool%a 43 ["JIS-mapped Japanese Font Support"]=> 44 bool(%s) 45} 46