Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28402 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74770 invoked by uid 1010); 19 Mar 2007 00:45:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 74754 invoked from network); 19 Mar 2007 00:45:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Mar 2007 00:45:34 -0000 Authentication-Results: pb1.pair.com header.from=wilson.jim.r@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=wilson.jim.r@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.182.186 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: wilson.jim.r@gmail.com X-Host-Fingerprint: 64.233.182.186 nf-out-0910.google.com Linux 2.4/2.6 Received: from [64.233.182.186] ([64.233.182.186:53719] helo=nf-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0A/08-18356-C2DDDF54 for ; Sun, 18 Mar 2007 19:45:33 -0500 Received: by nf-out-0910.google.com with SMTP id l35so997176nfa for ; Sun, 18 Mar 2007 17:45:29 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=aFulhVjYUMgd2ABNJUoMz/XzfCwS+/qkUbwHtcJ11yNLEOjZ+XX/dKXuJO6iWuheFlj1mP4MCkI4+lw+Fdyz8GB7mEvsLgeufoCHbXjEVqJMCnXKtowaoSBDGH5Eo/HXkimxzww/vYIRgb+XjIyvuV4Th73snfB9hHPME8xaspI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=eqbXJElWHDjf0N5ON8ezKF7KVMcboD2LpHsyF4hP1u2s2tRIalI+tXYmPn6jnthuG0o8PfmgQQlzAukIQ1t7aCRr91gpdz0wTYWHtyXoxojI2QOaZ5YCvWIE+2fuTtqFT0egS0TWU/+lQPUB9cyJ/Oel0l3fSrssmRwSVQrmWDA= Received: by 10.78.81.20 with SMTP id e20mr2182856hub.1174265129650; Sun, 18 Mar 2007 17:45:29 -0700 (PDT) Received: by 10.78.136.4 with HTTP; Sun, 18 Mar 2007 17:45:29 -0700 (PDT) Message-ID: Date: Sun, 18 Mar 2007 19:45:29 -0500 To: "Wez Furlong" Cc: internals@lists.php.net In-Reply-To: <24F7763B-824F-42B9-B7DA-C831BCF37D04@omniti.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_69570_26017896.1174265129361" References: <86478A67-DCA2-4000-9EF0-DA4338E8389B@omniti.com> <24F7763B-824F-42B9-B7DA-C831BCF37D04@omniti.com> Subject: Re: [PHP-DEV] Re: PATCH: anonymous functions in PHP From: wilson.jim.r@gmail.com ("Jim Wilson") ------=_Part_69570_26017896.1174265129361 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline > > So, the question is, do we want this in PHP? > > yes, please. Anonymous function declaration is one of the things I've always loved in Ruby and JavaScript - I for one would _love to see this_ in php. -- Jim R. Wilson (jimbojw) On 3/18/07, Wez Furlong wrote: > > I found another flaw; when used in a loop it keeps trying to declare > the same function over and over. I think this is because the > ZEND_DECLARE_FUNCTION opcode is emitted as part of the arg list > building op sequence. > > I'm poking to find an elegant way to fix that. > > --Wez. > > On Mar 18, 2007, at 7:41 PM, Wez Furlong wrote: > > > You can find my prototype patch at http://pastebin.ca/400871 > > (against PHP_5_2) > > > There's one minor flaw in my implementation for ZTS enabled systems > > (just need to move the anon function counter into CG() to solve that. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > ------=_Part_69570_26017896.1174265129361--