Bug #79415 [Opn->Sus]: gd 2.3.0 + imagettfbbox with empty text generates warning

From: Date: Thu, 26 Mar 2020 11:55:22 +0000
Subject: Bug #79415 [Opn->Sus]: gd 2.3.0 + imagettfbbox with empty text generates warning
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226271@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:             Open
+Status:             Suspended
 Type:               Bug
 Package:            GD related
 Operating System:   centos
 PHP Version:        7.3.16
 Block user comment: N
 Private report:     N

 New Comment:

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>


Previous Comments:
------------------------------------------------------------------------
[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


Thread (3 messages)

« previous php.bugs (#226271) next »