Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101054 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58084 invoked from network); 4 Nov 2017 21:25:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Nov 2017 21:25:05 -0000 Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.15.19 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.15.19 mout.gmx.net Received: from [212.227.15.19] ([212.227.15.19:64134] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4B/B1-09857-D203EF95 for ; Sat, 04 Nov 2017 16:25:03 -0500 Received: from [192.168.2.106] ([79.243.124.218]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MBnvD-1e0tS91MSF-00AjWT; Sat, 04 Nov 2017 22:24:58 +0100 To: Andreas Treichel , internals@lists.php.net References: Message-ID: <5e102e2e-5d5a-4eaa-822a-201671428fb1@gmx.de> Date: Sat, 4 Nov 2017 22:25:01 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:AKwKqvJVUdk22dt0bUkjsjXDG3kd/65i1w1gdP9Gjgu5c3vp/WP HAz8BNUFlH0QzpQV3JKZG0/cdGmV0dJDHqQwA4bpXBi7TsIg2llcrAGkrOBPmu0+E/tncDe wRZzRKrQlYdAmI6cJuU4D2dHxdxIKL4FLsUiGNE3QPauLA2FBJreTouZGMRQCuibLwRyocU NMweuh/ZadJiqb7ivsO0Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:mPwJJW6JbfI=:Ctlqj88paQB94zjrfDIOg/ VKK573hChbghMb6+h4ZoD+H/EB4FtmKe9+4wlMy8TJYcwQ/vVg7t3u6WZNVR9yQ1tnlsqnBcf AN1x8mKRGNygZt3uKRCgP0UYUXPnuzGJPvlqLG0RxdOigMaBAZV5G70L7zSDqFbuuIwSCIVTu z0ZZ+xOMxtxYqdA4zosBz9z7PLd3hMdC5KBFTpDTUlwRTjaeVWR3f9Th61lHTnSbUBITJIDXc 2FCN8Qjx+caupx5MRhIOrvcCqb1fV6li4IX1vadE06Yqfka4Q9riiuNC+ljPcgQvwCXa2AXep hU0ypqFN01h6QHm2t5U19EnDhXOrcnDFxu4thI1Gg1RSozfXKe+cchgBHug6vSld1qhOiWGJ4 vZjl0Ja8lYLtiiggHONZgABB4D1EI+KLcURvSIiHdXnq18B6LXBBFEGtXk4MILT9Xgvdy5VRp I+2GTSE7H2Gyad9c25ePX0pqi6KM/RcOEcNqumhqZGmIVoNWn06kI4HOyL9Tc9RefAAd2uOsA yJBxy3KF+6U7To27fcrVvf6+XXVXparKYwp53zEkP8smlF3np2ElpcH1RnVv+qiBhFAD1MqyM gueEVXzvrhgwavAQxc2K23+vA4lvRChg2GK4G6zptKxDNSfoWHfBeFXZaEOplYUvokTC3zo2i wC/9p0SZCqmHNM36xy2W3KW4Yqc39QMt5AFlBqNY/fRKJ1VIivIkLGD1RaPNgIEKqxIGwmloB vO9lRaZk3Oz4bjMG2ZdZx7n7Z5LBgpS+o2rwJzf4D0N8uCsERAy92vZcCmMpidjyqE1EjwU0l YHL2BdhqxbOyW5vycAPyiA1UZ3vOm4qrBwYn0ppocqTx4YyKZw= Subject: Re: Proposal: Rename image functions From: cmbecker69@gmx.de ("Christoph M. Becker") On 04.11.2017 at 17:40, Andreas Treichel wrote: > For a better readability of the gd functions I would like to rename them > so that they contain underscores to separate the words. The only > exception is image2wbmp which is renamed to image_to_wbmp. The order of > the parameters of all functions whould be unchanged. > > Due to the unchanged parameters it should be easyly possible to create > wrappers for forward / backward compatiblity to use the new function > names in old versions of PHP and via versa. In my opinion, just renaming the functions doesn't make much sense. Instead we might consider to introduce OO wrappers, which wouldn't unnecessarily polute the global namespace, and also could lead to more concise userland code. Kalle's gdobjects[1] might serve as a base. On the other hand, such OO wrappers could also be implemented in userland, what might already have been done. [1] -- Christoph M. Becker