Edit report at https://bugs.php.net/bug.php?id=66083&edit=1
ID: 66083
Updated by: cmb@php.net
Reported by: michael at bigmichi1 dot de
Summary: imagettfbox() returns different values
-Status: Feedback
+Status: Closed
Type: Bug
Package: GD related
Operating System: Ubuntu 13.10 / Win7
PHP Version: 5.5.5
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Thanks. So I assume we can close this ticket.
Previous Comments:
------------------------------------------------------------------------
[2016-09-28 12:48:26] michael at bigmichi1 dot de
with the version you linked to i got the same results like on windows
------------------------------------------------------------------------
[2016-09-28 12:22:38] cmb@php.net
> PHP 7.1.0-dev (cli) (built: Sep 26 2016 21:23:33) ( NTS MSVC14> (Visual C++ 2015) x64 )> PHP 7.1.0RC1 (cli) (built: Sep 27 2016 13:10:41) ( NTS )
Ah, we're comparing apples and oranges here. :-)
Note that the fix for 53504 is not contained in any QA release of
PHP 7.1 yet; it is scheduled for PHP 7.1.0RC3 only.
Running with current Windows 7.1 snapshots and the current 7.1
head on Linux both produces:
Array
(
[0] => 1
[1] => 0
[2] => 28
[3] => 0
[4] => 28
[5] => -9
[6] => 1
[7] => -9
)
You can download the current 7.1 head via
<https://github.com/php/php-src/archive/PHP-7.1.zip>.
Please try
this one on Linux.
------------------------------------------------------------------------
[2016-09-28 11:51:52] cmb@php.net
Thanks. I'll have a look at it ASAP.
------------------------------------------------------------------------
[2016-09-28 05:06:22] michael at bigmichi1 dot de
font file can be found here:
http://www.dafont.com/de/bitstream-vera-sans.font
reproducer:
<?php
$bounds = imagettfbbox(12, 0, "Vera.ttf", "one");
print_r($bounds);
------------------------------------------------------------------------
[2016-09-27 13:16:35] cmb@php.net
Thanks!
Can you please supply a minimal self-contained reproduce script?
If there is a non-standard font involved, please make this
available for download somewhere, too.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=66083
--
Edit this bug report at https://bugs.php.net/bug.php?id=66083&edit=1