Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97648 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26844 invoked from network); 9 Jan 2017 23:09:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jan 2017 23:09:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.17.20 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.17.20 mout.gmx.net Received: from [212.227.17.20] ([212.227.17.20:58197] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0E/44-31343-B0814785 for ; Mon, 09 Jan 2017 18:09:00 -0500 Received: from [192.168.2.109] ([217.82.227.120]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MgGDK-1c4EfE0QWk-00Nioc; Tue, 10 Jan 2017 00:08:50 +0100 To: Andrea Faulds , internals@lists.php.net References: <2cee1fe1-6dfd-0337-7286-42f873b9f508@gmx.de> <67.91.31343.AD0F3785@pb1.pair.com> Message-ID: <3d4917f6-98b6-3f33-ca92-d95ceeeceb0c@gmx.de> Date: Tue, 10 Jan 2017 00:08:52 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <67.91.31343.AD0F3785@pb1.pair.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:uMQyLnPthf9/wrGzq93JBHFn2tXVIIcQ8FvbT4Tiev6y+/Zfohr LpnM7/buqsepMT38yFTx6+zAV3eV5fuq0wsiTvxYlTnCIu1NCXJAplHVv+uVjiejquF1Wla C4CuwUoOuh0XiBIv4iMMnLf1ieCjRUn6HVycngcrH3yCrmwZOZ2WuRfTOW6Cko/47yTtGJh adCt0AyEs9N5dZaz8d2Og== X-UI-Out-Filterresults: notjunk:1;V01:K0:mqBJrGekQkA=:W684X7AtpIUcz2rGlqY72F tjDSmilBwmFLbfCoZUaD5+IGDnjzyAf/ynKiGWKPb9Y4nDNtvuZYVawVQUXz/eScNL0MSQeqc rZvmdyNgmoCLFi7ZHl1yUOiQeIUnmlybgA2xKYPmaUU2ZK9RKkEpkBreylzZ51AiC6+Vb08xB 14p96KIusjAtuRPKcTcBefEwhnfPt0bMsiP64oScYWPAJM4IFOiqSO96OWpUHMBl0kj/Qt8E2 Ct/hPhMhuLXk4oyZVgzIrW42dCciyWVSpZ6gLI3nbbRgtwqRb8/sTz7tKzSRfd8H3+XJ6iK6A e8sAQ2X9UsHM6HaH3HcUunEbVfUI080tEfmGU6ymH0m7ar5gloC8C+Pi7bmaT7Fy/wiFgCx6Y BmP422IOO39/oJ0QasHvtTi9zGz022YFkdICiIe6gtFp7ayjTobAPenhJ21wnTM9a2V3Wa8tA 1sUKELZRgrFBaOvtzwx1dtmnQiuSmROrldxeHh5vzmZn5bDqX1L9oc8bxebufIE66xrjCDG++ FFpRbifXevJqbYs6VQDOvsSJdBbA/SDMxUvABoIq5wrpyWNBatsqnfbyUSR9o6IUc1PY1QeRk GX5oKVn2esLxp5z8vYHTDw75gAIG74yuHWsn+5HFjmWw8jzDZEOi/OTlKFxGvYZn2PoPCSyoe MsPMEuGJ4EBgzx3kyrcogQPXecoONQ+CVTNXABtv+IpJ46KUHt1yTZXo5Ic2rLBa058RG2sZT KHKksDky3Vbzj99QStX5+IqgoENOtNk9xRIyUgsUDlfcx1bRAI25ivVLGDLXIUU5BzWU1fJ0r CNXWCna Subject: Re: [PHP-DEV] ext/gd: support creation of animated GIFs From: cmbecker69@gmx.de ("Christoph M. Becker") On 09.01.2017 at 21:21, Andrea Faulds wrote: > Joe Watkins wrote: > >> We have to face facts: Resources are still a thing. >> >> While there is talk of switching resources to use opaque objects, I'm >> worried about introducing a mixture of objects and resources in random >> places throughout core exts, and having exts with both seems very strange >> to me. ACK. >> I know that this has already started to happen, but before it goes any >> further I would implore you to stick to resources for now. > > The more things are made objects now, the less things need to be > converted to be objects later. ACK. > It might be “strange” to mix them, but would it actually cause > confusion? So far as the user cares, resources and objects returned by > Gd could just be integers. They're just opaque handles. I think that they *should* be opaque handles, but you never know how one's going to treat them. Presumably the most crucial point nowadays are type declarations; changing a resource to be an object could cause massive BC break (think of streams) – changing all resources to objects appears to be even impracticable for a major version. Therefore I think this has to be done in small steps ("eating the elephpant one bite at a time"), and so introducing new opaque handles as objects appears somewhat sensible even if that causes a mix of resources and objects in a single extension. Anyhow, I understand that the animated GIF support will need an RFC, and there should be a secondary voting option whether the API should use a resource or an opaque object. -- Christoph M. Becker