Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75880 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60522 invoked from network); 22 Jul 2014 19:01:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jul 2014 19:01:53 -0000 Authentication-Results: pb1.pair.com header.from=lonny@lonnylot.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=lonny@lonnylot.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain lonnylot.com designates 209.85.192.44 as permitted sender) X-PHP-List-Original-Sender: lonny@lonnylot.com X-Host-Fingerprint: 209.85.192.44 mail-qg0-f44.google.com Received: from [209.85.192.44] ([209.85.192.44:56477] helo=mail-qg0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 83/8D-21666-025BEC35 for ; Tue, 22 Jul 2014 15:01:53 -0400 Received: by mail-qg0-f44.google.com with SMTP id e89so125490qgf.3 for ; Tue, 22 Jul 2014 12:01:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lonnylot.com; s=google; h=from:content-type:subject:date:message-id:cc:to:mime-version; bh=Vp5oi7V5QjQ3R3idkitzEMWp4I7DxclNfmZQj0Efmic=; b=Eg/mGOgXpohbqJ2drJaA1VaItm8vdOy5eT9+fKgiEoCKIFXEZsebZmwi7pf8fWyhau 2O9zLWl6uGz2ta3UTgqfXJnMHfnGAKL0CNCffuaRqIqPRdsKygi2GcskjlwHtz4PuS4z thJzKwE/yCsRvQTPHlvGqx8WH9dwuFEMImoFo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:subject:date:message-id:cc:to :mime-version; bh=Vp5oi7V5QjQ3R3idkitzEMWp4I7DxclNfmZQj0Efmic=; b=AdE2SFg58QJUP3PXGxv08Ao3VyP0/iP19IPdpzyuwdo4D0RRum6j/ZBrJFr70CXJmN 2IWs+lHEXpjq+MXdjcAYI1xsOs9C2T8ftMxxA5iebEzd8XbzrZPjkT/iZ9iWQQF0qLZe rkLT9tutYrdGGu57v8umYc/H4MsQV92ei2GBgcjwIdRrMbToXiAes0ZktDMSkgEqtqJB gYorscatWdLYMTMgzUQ+x1SX3VxGNAYLoj1VDEVvd9LnmVulzn8ksbKZFb+Z2RRGvjaX oB1KVeUiSFNE9zDBqvr9/Z45gVGjaJFRcjVy1t4/8qO73XcrZTDOkHTGcJO1AuornTvv i6/A== X-Gm-Message-State: ALoCoQng1pi490m60NNVhffaraaXa5buBDnK6Cn47LoRt/O3Qwjz/tHShsBw3vKkHIgZcqzqI57B X-Received: by 10.140.18.168 with SMTP id 37mr42197098qgf.105.1406055710660; Tue, 22 Jul 2014 12:01:50 -0700 (PDT) Received: from [10.1.2.66] (rrcs-50-74-199-34.nyc.biz.rr.com. [50.74.199.34]) by mx.google.com with ESMTPSA id 33sm1247841qgt.28.2014.07.22.12.01.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 22 Jul 2014 12:01:50 -0700 (PDT) Content-Type: multipart/alternative; boundary="Apple-Mail=_6F2216F9-A7E5-4A96-A3E9-DA8C18BDE6CB" Date: Tue, 22 Jul 2014 15:01:49 -0400 Message-ID: Cc: pierre.php@gmail.com To: internals@lists.php.net Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) Subject: Deprecating GD functions imagettftext/bbox From: lonny@lonnylot.com (Lonny Kapelushnik) --Apple-Mail=_6F2216F9-A7E5-4A96-A3E9-DA8C18BDE6CB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 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 seems 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 =91extrainfo=92 = parameter The only step to migrate from the imagettf* functions to imageft* = functions is to change the function names from =91imagettf*=92 to = =91imageft*' 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. = If the reception is positive I would like to create an RFC to discuss = this in full and come up with a timeline. =96=96=96 Hakuna Matata! Lonny Kapelushnik https://www.lonnylot.com 732.685.9175 --Apple-Mail=_6F2216F9-A7E5-4A96-A3E9-DA8C18BDE6CB--