com php-src: Merge branch 'PHP-7.0' into PHP-7.1: ext/gd/tests/bug48801-mb.phpt

From: Date: Tue, 20 Sep 2016 10:18:13 +0000
Subject: com php-src: Merge branch 'PHP-7.0' into PHP-7.1: ext/gd/tests/bug48801-mb.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-94603@lists.php.net to get a copy of this message
Commit: 7e21cb0c9963d5040b859c4a8b9f9ae2f3cbc9d0 Author: Christoph M. Becker <cmbecker69@gmx.de> Tue, 20 Sep 2016 12:17:06 +0200 Parents: 64a8048c53984bf03baab948bdb1166eed7acc72 eeb9113b6c0b5375ef14e1cc19cfe196b5813cbe Branches: PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7e21cb0c9963d5040b859c4a8b9f9ae2f3cbc9d0 Log: Merge branch 'PHP-7.0' into PHP-7.1 Changed paths: MA ext/gd/tests/bug48801-mb.phpt Diff: diff --cc ext/gd/tests/bug48801-mb.phpt index cbd7624,0000000..6a31cf1 mode 100644,000000..100644 --- a/ext/gd/tests/bug48801-mb.phpt +++ b/ext/gd/tests/bug48801-mb.phpt @@@ -1,25 -1,0 +1,27 @@@ +--TEST-- +Bug #48801 (Problem with imagettfbbox) freetype < 2.4.10 +--SKIPIF-- +<?php + if(!extension_loaded('gd')){ die('skip gd extension not available'); } + if(!function_exists('imageftbbox')) die('skip imageftbbox() not available'); + + include dirname(__FILE__) . '/func.inc'; + if(version_compare(get_freetype_version(), '2.4.10') >= 0) die('skip for freetype < 2.4.10'); ++ ++ die('skip freetype issues'); +?> +--FILE-- +<?php +$cwd = dirname(__FILE__); +$font = "$cwd/Tuffy私はガラスを食べられます.ttf"; +$bbox = imageftbbox(50, 0, $font, "image"); +echo '(' . $bbox[0] . ', ' . $bbox[1] . ")\n"; +echo '(' . $bbox[2] . ', ' . $bbox[3] . ")\n"; +echo '(' . $bbox[4] . ', ' . $bbox[5] . ")\n"; +echo '(' . $bbox[6] . ', ' . $bbox[7] . ")\n"; +?> +--EXPECTF-- +(-1, 15) +(15%d, 15) +(15%d, -48) +(-1, -48)

« previous php.cvs (#94603) next »