Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28401 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69871 invoked by uid 1010); 19 Mar 2007 00:30:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 69856 invoked from network); 19 Mar 2007 00:30:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Mar 2007 00:30:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=wez@omniti.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=wez@omniti.com; sender-id=pass; domainkeys=good Received-SPF: pass (pb1.pair.com: domain omniti.com designates 66.225.209.50 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: wez@omniti.com X-Host-Fingerprint: 66.225.209.50 mail.omniti.com Linux 2.5 (sometimes 2.4) (4) Received: from [66.225.209.50] ([66.225.209.50:42829] helo=mail.omniti.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 27/B7-18356-3B9DDF54 for ; Sun, 18 Mar 2007 19:30:44 -0500 X-DKIM: Ecelerity dkim_sign implementing draft-ietf-dkim-base-00 DKIM-Signature: a=rsa-sha1; d=omniti.com; s=test; t=1174264240; c=simple/simple; q=dns; i=@omniti.com; h=From; b=AnPxzR7B1aeFJDPDzNjmjCRI+nIryh7noqckmEu4hOq2mD86+fDHTrT5LYPHn45d zJp82ffyOoPukfcLUZNvh/z8gQSxxz+Rh+8akYUUbtRlvoV7NPUUkvYYVj3kHU3t X-DomainKeys: Ecelerity dk_sign implementing draft-delany-domainkeys-base-01 DomainKey-Signature: q=dns; a=rsa-sha1; c=nofws; s=test; d=omniti.com; h=Authentication-Results:Received:In-Reply-To:References:Mime-Version:Content-Type:Message-Id:Cc:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=ah/hJiA9OP9acCUKwkigPi259p5OvOEyUrggCgmOrLfk2C8rBTQLsHBXufNXaZVn bSXmzB+s8L0Y88gzH7ECBlFogJBHF/hbENwNYNegAjzDNyQP4LtZzKrGliIzU8Cr Authentication-Results: mail.omniti.com smtp.user=wez; auth=pass (LOGIN) Received: from [76.100.30.170] ([76.100.30.170:54530] helo=[192.168.50.4]) by mail.omniti.com (ecelerity 2.1.1.12 r(14453)) with ESMTPSA (cipher=AES128-SHA) id BB/FC-26454-EA9DDF54 for ; Sun, 18 Mar 2007 20:30:40 -0400 In-Reply-To: <86478A67-DCA2-4000-9EF0-DA4338E8389B@omniti.com> References: <86478A67-DCA2-4000-9EF0-DA4338E8389B@omniti.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: <24F7763B-824F-42B9-B7DA-C831BCF37D04@omniti.com> Cc: internals@lists.php.net Content-Transfer-Encoding: 7bit Date: Sun, 18 Mar 2007 20:30:37 -0400 To: Wez Furlong X-Mailer: Apple Mail (2.752.3) Subject: Re: PATCH: anonymous functions in PHP From: wez@omniti.com (Wez Furlong) 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.