Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81560 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78204 invoked from network); 2 Feb 2015 08:06:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Feb 2015 08:06:13 -0000 Authentication-Results: pb1.pair.com header.from=laruence@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=xinchen.h@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.215.44 as permitted sender) X-PHP-List-Original-Sender: xinchen.h@zend.com X-Host-Fingerprint: 209.85.215.44 mail-la0-f44.google.com Received: from [209.85.215.44] ([209.85.215.44:36401] helo=mail-la0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DB/12-02376-1FF2FC45 for ; Mon, 02 Feb 2015 03:06:10 -0500 Received: by mail-la0-f44.google.com with SMTP id s18so38210080lam.3 for ; Mon, 02 Feb 2015 00:06:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=Rtvq7QMXaeSKtrW2XJUabivzsfQV60/7dveyIOxcfm0=; b=YOtBtHPAGegM4kFLA4XXANletIBFAlV159VmF04hQ4Bx+H2Y+HWL7Fs/cRneIJyvzH SgpZ7LOojppKs8WUK1w0bHcwvYY+D2lEFjP6RxOKq0GtPcPXxzYU4HgMo9QoTjar/AN+ c0ljcQug9OVF7x5zCwvGbvCLcQxT/pnp1+jDVNteM5GYrcXrehxhpL1nFsyg39jcB1hi urvdVjZDJNqjVC2OwvcpRQ0B9RgnHKysBUkMyaj+szPNkIGb5nTXRjqJ3DEJVZ76fIaX kp7oKV7oWMlVbobwUwF4siLm3HCq2iZtv9pSXN/bQCveiapi/1qrwjcpyQaG6dYWGgjO 5fTw== X-Gm-Message-State: ALoCoQm28R/afCtU+STyYur28ru7WBvhqujwFLbBvFnpnIWhy8H0L2CW+BnrBSd4YFmU6asUto1c8/Nw6OTk2RdXP7LjrB7I7Jn4Sb3eIXHCcnL6ubPMiPzm8BP6l7Gi9LY9o/cpnPvkc+EMGU5Mfg8M/CvpDxlHdw== X-Received: by 10.112.198.233 with SMTP id jf9mr18631786lbc.9.1422864366616; Mon, 02 Feb 2015 00:06:06 -0800 (PST) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPSA id kt7sm4224094lac.4.2015.02.02.00.06.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Feb 2015 00:06:05 -0800 (PST) Received: by mail-la0-f49.google.com with SMTP id gf13so37937781lab.8 for ; Mon, 02 Feb 2015 00:06:05 -0800 (PST) X-Received: by 10.152.36.162 with SMTP id r2mr5098147laj.9.1422864365015; Mon, 02 Feb 2015 00:06:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.28.193 with HTTP; Mon, 2 Feb 2015 00:05:44 -0800 (PST) In-Reply-To: <438AA331-76E1-4986-847F-61587A8BD5FF@golemon.com> References: <438AA331-76E1-4986-847F-61587A8BD5FF@golemon.com> Date: Mon, 2 Feb 2015 16:05:44 +0800 Message-ID: To: Sara Golemon Cc: PHP Internals , Dmitry Stogov Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: [DICUSS]Cleanup resource handling APIs From: laruence@php.net (Xinchen Hui) Hey Sara: On Mon, Feb 2, 2015 at 4:01 PM, Sara Golemon wrote: > > >> On 2 Feb 2015, at 06:43, Xinchen Hui wrote: >> furthermore, I'd like to discuss remove the handle in zend_resource struct.. >> >> it may breaks some usage (use resource as long/double/string > > I've seen uses in the wild where file handles are used as array keys (yes, I know, ugly and wrong). > > If we were to remove rsrc handle, we should formally deprecate it for at least one minor revision first. > > I'm all for killing it, and I fully support improving the internal API, but the gentler we are with BC breaks, the better. I agree, as I said, removing it is the step 2 actions we may discuss it later.. thanks > > -Sara -- Xinchen Hui @Laruence http://www.laruence.com/