Le mardi 16 novembre 2021, 13:40:30 CET Christoph M. Becker a écrit : > On 16.11.2021 at 13:11, Côme Chilliet wrote: > > I have a difference in behavior between PHP 8.1 RC6 and my system PHP for > > the function imagettfbbox. > > It is hard to know if this is a problem with 8.1 really because I had to > > download and build imagick through pecl to be able to run this. > > imagettfbbox() is part of ext/gd which is a bundled extension. It has > nothing to do with imagick (besides both are for image manipulation).
Thank you for the clarification, I got lost in all theses libraries… > This might be due to different libfreetype, libgd or libraqm versions > (or possibly libraqm wasn't enabled for one of the builds), or because > one build used system libgd and the other used the bundled GD. The PHP from my system is 7.4 and says: $ php --info|grep -i freetype -i FreeType Support => enabled FreeType Linkage => with freetype $ php --info|grep -i gd -i /etc/php/7.4/cli/conf.d/20-gd.ini, gd GD Support => enabled GD headers Version => 2.2.5 GD library Version => 2.2.5 gd.jpeg_ignore_warning => 1 => 1 The one I built says: $ ~/dev/php-src-git/sapi/cli/php --info|grep -i freetype Configure Command => './configure' '--with-ldap' '--with-ldap-sasl' '--with-zip' '--with-curl' '--with-openssl' '--with-zlib' '--enable-mbstring' '--enable-pcntl' '--enable-intl' '--with-password-argon2' '--with-freetype' '--with-jpeg' '--enable-gd' '--with-imagick' FreeType Support => enabled FreeType Linkage => with freetype FreeType Version => 2.10.1 $ ~/dev/php-src-git/sapi/cli/php --info|grep -i gd Configure Command => './configure' '--with-ldap' '--with-ldap-sasl' '--with-zip' '--with-curl' '--with-openssl' '--with-zlib' '--enable-mbstring' '--enable-pcntl' '--enable-intl' '--with-password-argon2' '--with-freetype' '--with-jpeg' '--enable-gd' '--with-imagick' gd GD Support => enabled GD Version => bundled (2.1.0 compatible) gd.jpeg_ignore_warning => 1 => 1 So it seems the one I built used a bundled older version of GD? How should I change my configure line to use the same GD as the other one? Côme -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php