1--TEST-- 2GH-13082 - imagefontwidth/height unexpectedly throwing an exception on a valid GdFont object. 3--EXTENSIONS-- 4gd 5--SKIPIF-- 6<?php if (pack('i', 0x01020304) !== "\x04\x03\x02\x01") die('skip unsupported platform'); ?> 7--FILE-- 8<?php 9 $font = imageloadfont(__DIR__ . "/gh13082.gdf"); 10 if ($font === false) die("imageloadfont failed"); 11 if (!($font instanceof GdFont)) die("invalid gd font"); 12 13 var_dump(imagefontwidth($font)); 14 var_dump(imagefontheight($font)); 15?> 16--EXPECT-- 17int(12) 18int(20) 19