com php-src: Merge branch 'PHP-7.0' into PHP-7.1: ext/gd/tests/bug48801-mb.phpt
| From: | Christoph Michael Becker | Date: | Fri, 23 Sep 2016 10:57:10 +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-94637@lists.php.net to get a copy of this message | ||
Commit: 8dfee1a777a0fd38b3b3e8867155fb0fd90d21df
Author: Christoph M. Becker <cmbecker69@gmx.de> Fri, 23 Sep 2016 12:55:13 +0200
Parents: 681d3148cd882bb3806f703cf5085f35e0b743de deda0587512724d61eab33317359e7c98715f0c6
Branches: PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8dfee1a777a0fd38b3b3e8867155fb0fd90d21df
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 6a31cf1,0000000..c2b6b45
mode 100644,000000..100644
--- a/ext/gd/tests/bug48801-mb.phpt
+++ b/ext/gd/tests/bug48801-mb.phpt
@@@ -1,27 -1,0 +1,22 @@@
+--TEST--
- Bug #48801 (Problem with imagettfbbox) freetype < 2.4.10
++Bug #48801 (Problem with imagettfbbox)
+--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)
++--EXPECTREGEX--
++\(4, 15\)
++\(16[0-1], 15\)
++\(16[0-1], -4[7-8]\)
++\(4, -4[7-8]\)