Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97640 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11411 invoked from network); 9 Jan 2017 20:21:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jan 2017 20:21:47 -0000 X-Host-Fingerprint: 95.150.123.240 unknown Received: from [95.150.123.240] ([95.150.123.240:18219] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/91-31343-AD0F3785 for ; Mon, 09 Jan 2017 15:21:46 -0500 Message-ID: <67.91.31343.AD0F3785@pb1.pair.com> To: internals@lists.php.net References: <2cee1fe1-6dfd-0337-7286-42f873b9f508@gmx.de> Date: Mon, 9 Jan 2017 20:21:42 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Posted-By: 95.150.123.240 Subject: Re: [PHP-DEV] ext/gd: support creation of animated GIFs From: ajf@ajf.me (Andrea Faulds) Hi Joe, 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. > > 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. 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. Thanks. -- Andrea Faulds https://ajf.me/