Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81564 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86606 invoked from network); 2 Feb 2015 08:47:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Feb 2015 08:47:10 -0000 Authentication-Results: pb1.pair.com header.from=mike.php.net@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=mike.php.net@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.170 as permitted sender) X-PHP-List-Original-Sender: mike.php.net@gmail.com X-Host-Fingerprint: 209.85.212.170 mail-wi0-f170.google.com Received: from [209.85.212.170] ([209.85.212.170:36816] helo=mail-wi0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 27/B3-02376-C893FC45 for ; Mon, 02 Feb 2015 03:47:09 -0500 Received: by mail-wi0-f170.google.com with SMTP id bs8so14029453wib.1 for ; Mon, 02 Feb 2015 00:47:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ltB1L8KvdbFw/Djn4IWyY/aEetAoVwOlCG+qs2ZTHno=; b=ytI9R5DHhnY2vlFHg/60xLOvfJRlDNudY7HjrcymPgnBbJuxvrkjARPh52i2nlPm6i dh+fbQ6knCbVPNwFrqvV4lJJnqocfFidZ+9uHM0CUcjEDTKeeEekQYMM5hYpbpVOlMtc gyYDZL7lnG806mvCxjltuN4EzLKB4H0KyPa63DoAv7WOjjyjyTFpL5uk4Z0bFPI1skrr 0EwzAj4AFBdGTAhJb7PK319NRUPEUnx5QNzaS6AEr5LlAJ08uleqPy6y3TAvtktBKzx+ RchKYzDXaaQh6AbfmlGmr18zW+b6ATNnpxU+QI8+Db4iFmEojSTBVemC30fRIy+dSxrY JNjg== X-Received: by 10.181.9.107 with SMTP id dr11mr3751561wid.40.1422866825011; Mon, 02 Feb 2015 00:47:05 -0800 (PST) Received: from lepisma-3.bemi (89-104-28-113.customer.bnet.at. [89.104.28.113]) by mx.google.com with ESMTPSA id et4sm26818881wjd.15.2015.02.02.00.47.03 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Feb 2015 00:47:04 -0800 (PST) Sender: Michael Wallner Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: <438AA331-76E1-4986-847F-61587A8BD5FF@golemon.com> Date: Mon, 2 Feb 2015 09:47:03 +0100 Cc: Xinchen Hui , PHP Internals , Dmitry Stogov Content-Transfer-Encoding: quoted-printable Message-ID: References: <438AA331-76E1-4986-847F-61587A8BD5FF@golemon.com> To: Sara Golemon X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] [DICUSS]Cleanup resource handling APIs From: mike@php.net (Michael Wallner) > On 02 02 2015, at 09:01, Sara Golemon wrote: >=20 >=20 >=20 >> On 2 Feb 2015, at 06:43, Xinchen Hui wrote: >> furthermore, I'd like to discuss remove the handle in zend_resource = struct.. >>=20 >> it may breaks some usage (use resource as long/double/string >=20 > I've seen uses in the wild where file handles are used as array keys = (yes, I know, ugly and wrong). Yes, I definitely use that a lot and cannot see why this should be = wrong. >=20 > If we were to remove rsrc handle, we should formally deprecate it for = at least one minor revision first. >=20 > I'm all for killing it, and I fully support improving the internal = API, but the gentler we are with BC breaks, the better.