Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62011 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82707 invoked from network); 3 Aug 2012 15:53:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Aug 2012 15:53:27 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vc0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:52145] helo=mail-vc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/9C-09659-6F3FB105 for ; Fri, 03 Aug 2012 11:53:27 -0400 Received: by vcbgb30 with SMTP id gb30so955740vcb.29 for ; Fri, 03 Aug 2012 08:53:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Xfc7AY9m5vOd2ewxyH/XOIQ53aoHHKoFj4R/RZAPB8E=; b=fTpkGYZbEk6B/wE5t0hbWY0LyLO/tI3XXibGqylnuEL2BtVJXlfnDAKrceMsWSMHx7 uKSk725vuWfEVY+MNBIXQPMp7ZhO1bp18GyEcpNGHK1YCY2yoFaV9XsCLMArPS1OJnf+ y2wdecMFESK93qP2pQKg4gv5PuE/jvW7131CVZ7l8MoQAqREbX7BA5L47oJAHxNEhu9g GQ4NVB04kTDHyEsL8xHqSzVSJWDgH+REUP5lJjPiQJRuITIfE0HWOEmbe/xh0c08KA0J wvQOW8o1jhjyBUUaKzkmsYLkpUIsLftW7TDPxP0UK8qBGBUW/Wq/aHE2k3+iMgIByR+4 QeiQ== MIME-Version: 1.0 Received: by 10.58.74.196 with SMTP id w4mr1950655vev.7.1344009203824; Fri, 03 Aug 2012 08:53:23 -0700 (PDT) Received: by 10.58.216.166 with HTTP; Fri, 3 Aug 2012 08:53:23 -0700 (PDT) In-Reply-To: References: Date: Fri, 3 Aug 2012 17:53:23 +0200 Message-ID: To: Rasmus Schultz Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=047d7b86edf62b37ba04c65e87c4 Subject: Re: [PHP-DEV] missing documentation for use-clause in closures? From: tyra3l@gmail.com (Ferenc Kovacs) --047d7b86edf62b37ba04c65e87c4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Aug 3, 2012 at 5:09 PM, Rasmus Schultz wrote: > Is this all the documentation there is for the use-clause for > anonymous closures? > > http://us2.php.net/manual/en/functions.anonymous.php > > For one, it would be nice to have documentation that explains whether > the variables listed in the use-clause are copied/referenced at > declaration-time or at call-time? > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > would be nice having more docs on that. there are the two rfc's: https://wiki.php.net/rfc/closures and https://wiki.php.net/rfc/closures/object-extension but make sure to test because AFAIR the rfc is a little bit behind the current implementation. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --047d7b86edf62b37ba04c65e87c4--