xref: /PHP-8.2/ext/gd/tests/gh13082.phpt (revision 8d4e177d)
1--TEST--
2GH-13082 - imagefontwidth/height unexpectedly throwing an exception on a valid GdFont object.
3--EXTENSIONS--
4gd
5--SKIPIF--
6<?php if (getenv('TRAVIS')) die('skip Currently fails on Travis'); ?>
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