Bug #79415 [Sus->Nab]: gd 2.3.0 + imagettfbbox with empty text generates warning
| From: | cmb@php.net | Date: | Tue, 05 May 2020 10:07:46 +0000 |
| Subject: | Bug #79415 [Sus->Nab]: gd 2.3.0 + imagettfbbox with empty text generates warning | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-226923@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79415&edit=1
ID: 79415
Updated by: cmb@php.net
Reported by: manuel dot vacelet+php at enalean dot com
Summary: gd 2.3.0 + imagettfbbox with empty text generates
warning
-Status: Suspended
+Status: Not a bug
Type: Bug
Package: GD related
Operating System: centos
PHP Version: 7.3.16
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This has been acknowledged as upstream bug (and already fixed), so
this is not a PHP bug.
Previous Comments:
------------------------------------------------------------------------
[2020-03-26 11:55:22] cmb@php.net
I can confirm the behavioral change, and filed a upstream bug
report[1]. Let's see whether that gets acknowledged as bug.
[1] <https://github.com/libgd/libgd/issues/615>
------------------------------------------------------------------------
[2020-03-26 08:30:57] manuel dot vacelet+php at enalean dot com
Description:
------------
Last version of gd (2.3.x) changes the behaviour of some gd functions with empty text, see example
bellow
Impacted functions (at least)
- imagettfbbox
- imagettftext
Test script:
---------------
With gd 2.3.0 + php 7.3.16 (centos7, remi repos)
imagettfbbox(9, 0, '/usr/share/fonts/dejavu/DejaVuSans.ttf', '');
PHP Warning: imagettfbbox(): Problem doing text layout in php shell code on line 1
With gd 2.2.5 + php 7.3.15 (centos7, remi repos)
imagettfbbox(9, 0, '/usr/share/fonts/dejavu/DejaVuSans.ttf', '')
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79415&edit=1