Bug #79415 [NEW]: gd 2.3.0 + imagettfbbox with empty text generates warning

From: Date: Thu, 26 Mar 2020 08:30:57 +0000
Subject: Bug #79415 [NEW]: gd 2.3.0 + imagettfbbox with empty text generates warning
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226269@lists.php.net to get a copy of this message
From: manuel dot vacelet+php at enalean dot com Operating system: centos PHP version: 7.3.16 Package: GD related Bug Type: Bug Bug description:gd 2.3.0 + imagettfbbox with empty text generates warning 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 bug report at https://bugs.php.net/bug.php?id=79415&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79415&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79415&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79415&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79415&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79415&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79415&r=support Expected behavior: https://bugs.php.net/fix.php?id=79415&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79415&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79415&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79415&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79415&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79415&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79415&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79415&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79415&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79415&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79415&r=mysqlcfg

« previous php.bugs (#226269) next »