Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75919 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54108 invoked from network); 23 Jul 2014 02:31:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jul 2014 02:31:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.46 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.219.46 mail-oa0-f46.google.com Received: from [209.85.219.46] ([209.85.219.46:39787] helo=mail-oa0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CE/5D-21666-79E1FC35 for ; Tue, 22 Jul 2014 22:31:52 -0400 Received: by mail-oa0-f46.google.com with SMTP id m1so771410oag.19 for ; Tue, 22 Jul 2014 19:31:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=r2Yb4/N6FVkz9TopgPx51ZyYYI4f9KVCprCghh9aRjA=; b=UbYiVXy4D3HgeM6zAqxae/F4Kve87UWyarJIOSnwS6thRvrDxnHJy9ndMgttvJP/cY M1yZuE2XJh4O8/OiGbZgnP0UDSLlaaiQPql0HiXgWWb4X1OFsMwOi2+UzejjqiE9/Nt6 LHx8NN9FyhZiY/bBovqgnXB0lWybJlevNry+PDtc6awDQBEkmmGxVKSxrTa6b8RJnGEr wuGrodgczCERzDofiNZDRfv6XM0Sw5KhqR/5k4woAsVC0KYEzyGw7wQ6KtWVmgFwmXhA RukRv5JbzJqt/i2W6izToHaHlTMuSmFe1olCsW32CnZKBejERaikHQKGMx/wYAMXTD49 teVQ== MIME-Version: 1.0 X-Received: by 10.182.66.79 with SMTP id d15mr54843013obt.49.1406082709707; Tue, 22 Jul 2014 19:31:49 -0700 (PDT) Received: by 10.202.93.213 with HTTP; Tue, 22 Jul 2014 19:31:49 -0700 (PDT) In-Reply-To: References: Date: Tue, 22 Jul 2014 19:31:49 -0700 Message-ID: To: Lonny Kapelushnik Cc: PHP internals list , Pierre Joye Content-Type: multipart/alternative; boundary=e89a8fb1fca46fe15104fed3244d Subject: Re: [PHP-DEV] Deprecating GD functions imagettftext/bbox From: kris.craig@gmail.com (Kris Craig) --e89a8fb1fca46fe15104fed3244d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Jul 22, 2014 at 12:01 PM, Lonny Kapelushnik wrote: > Morning, > > I propose deprecating two GD functions: imagettftext and imagettfbbox. > > The reasons I would like to deprecate them are: > 1. Their functionality is a subset of imagefttext and imageftbbox > 2. The imagettf* functions have the same requirements as the imageft* > functions > 3. The imagettf* functions parameters are compatible with the imageft* > functions parameters > > As far as I can tell the original reason for having both functions was > because PHP LIBGD is a custom implementation of LIBGD that had additional > functionality from the actual LIBGD. While this is still the case it seem= s > that now the required functions (gdImageStringFT and gdImageStringFTEx) > exist in both libraries. > > The only difference between imagettf* and imageft* functions is the > imagettf* functions do not provide the optional =E2=80=98extrainfo=E2=80= =99 parameter > > The only step to migrate from the imagettf* functions to imageft* > functions is to change the function names from =E2=80=98imagettf*=E2=80= =99 to =E2=80=98imageft*' > > I would like to create a timeline to deprecate and remove the imagettf* > functions. Providing a timeline will allow for: > 1. Clarity for which PHP functions to use going forward > 2. Ability to plan a migration to the new PHP functions > 3. Clarity for which PHP functions to improve in php-src > 4. Ability to clean up some of the GD code in php-src > > I will hold off on proposing an actual timeline for now. > > I can implement any coding changes needed. > > Please let me know the general thoughts to deprecating these functions. I= f > the reception is positive I would like to create an RFC to discuss this = in > full and come up with a timeline. > > =E2=80=93=E2=80=93=E2=80=93 > Hakuna Matata! > Lonny Kapelushnik > https://www.lonnylot.com > 732.685.9175 > > You've clearly given this some thought, so my suggestion would be that you go ahead and create the RFC now. Committing yourself to the idea will probably make people more likely to invest their time in responding to it. --Kris --e89a8fb1fca46fe15104fed3244d--