From 592df890276604c790d02be26b1b3c3710b3b888 Mon Sep 17 00:00:00 2001 From: Matteo Beccati Date: Wed, 3 Sep 2014 09:43:29 +0200 Subject: Fixed test with freetype >= 2.4.12 --- ext/gd/tests/bug48801_1.phpt | 5 +++-- ext/gd/tests/bug48801_2.phpt | 25 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 ext/gd/tests/bug48801_2.phpt diff --git a/ext/gd/tests/bug48801_1.phpt b/ext/gd/tests/bug48801_1.phpt index 11af80cd4b..ef2aa1dba7 100644 --- a/ext/gd/tests/bug48801_1.phpt +++ b/ext/gd/tests/bug48801_1.phpt @@ -1,12 +1,13 @@ --TEST-- -Bug #48801 (Problem with imagettfbbox) freetype >= 2.4.10 +Bug #48801 (Problem with imagettfbbox) freetype >= 2.4.10 and < 2.4.12 --SKIPIF-- = 2.4.10'); + if(version_compare(get_freetype_version(), '2.4.10') < 0) die('skip for freetype >= 2.4.10'); + if(version_compare(get_freetype_version(), '2.4.12') >= 0) die('skip for freetype < 2.4.12'); ?> --FILE-- = 2.4.12 +--SKIPIF-- += 2.4.12'); +?> +--FILE-- + +--EXPECTF-- +(-1, 15) +(155, 15) +(155, -48) +(-1, -48) -- cgit v1.2.1