Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116408 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 89010 invoked from network); 16 Nov 2021 11:16:21 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 16 Nov 2021 11:16:21 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CF29D18053F for ; Tue, 16 Nov 2021 04:11:17 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_40,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS29169 217.70.176.0/20 X-Spam-Virus: No X-Envelope-From: Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 16 Nov 2021 04:11:16 -0800 (PST) Received: (Authenticated sender: come@chilliet.eu) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id C9C8560009 for ; Tue, 16 Nov 2021 12:11:14 +0000 (UTC) To: internals@lists.php.net Date: Tue, 16 Nov 2021 13:11:13 +0100 Message-ID: <2082929.irdbgypaU6@come-prox15amd> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Subject: Re: [PHP-DEV] PHP 8.1.0RC6 available for testing From: come@chilliet.eu (=?ISO-8859-1?Q?C=F4me?= Chilliet) Hello, I have a difference in behavior between PHP 8.1 RC6 and my system PHP for t= he function imagettfbbox. It is hard to know if this is a problem with 8.1 really because I had to do= wnload and build imagick through pecl to be able to run this. int(1) [1]=3D> int(0) [2]=3D> int(8) [3]=3D> int(0) [4]=3D> int(8) [5]=3D> int(-12) [6]=3D> int(1) [7]=3D> int(-12) } $ php ~/dev/test-freetype.php array(8) { [0]=3D> int(0) [1]=3D> int(1) [2]=3D> int(10) [3]=3D> int(1) [4]=3D> int(10) [5]=3D> int(-12) [6]=3D> int(0) [7]=3D> int(-12) } As you can see the resulting bounding box is not the same, for the same fon= t. This messes up our avatar generation, which ends up a few pixels wrong o= n the centering of the initial in the image. Does anyone knows where this can come from, and if by changing how I build/= link imagick I can get the same result on both binaries? C=F4me