1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix GH-17891 gh17373.phpt test issue without freetype support

skip if imagefttext() is not available

This test calls imagefttext(), which may not be available if libgd
was built without freetype support.

Closes GH-17910
This commit is contained in:
Michael Orlitzky
2025-02-23 22:35:55 -05:00
committed by David Carlier
parent 065b4ec125
commit 174a7fe6f9

View File

@@ -2,6 +2,10 @@
Bug GH-17373 (imagefttext() ignores clipping rect for palette images) Bug GH-17373 (imagefttext() ignores clipping rect for palette images)
--EXTENSIONS-- --EXTENSIONS--
gd gd
--SKIPIF--
<?php
if(!function_exists('imagefttext')) die('skip imagefttext() not available');
?>
--FILE-- --FILE--
<?php <?php
$im = imagecreate(64, 32); $im = imagecreate(64, 32);