Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34053 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7832 invoked by uid 1010); 17 Dec 2007 08:21:13 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 7798 invoked from network); 17 Dec 2007 08:21:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Dec 2007 08:21:10 -0000 Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.178.251 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 64.233.178.251 hs-out-0708.google.com Linux 2.4/2.6 Received: from [64.233.178.251] ([64.233.178.251:15011] helo=hs-out-2122.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EA/BB-23767-A5136674 for ; Mon, 17 Dec 2007 03:20:57 -0500 Received: by hs-out-2122.google.com with SMTP id l65so2115242hsc.7 for ; Mon, 17 Dec 2007 00:20:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=7YFWCmTd/mtDPYEPzsyaIO7NQ8Z2H83AQ+WXjfsdf98=; b=B2xEL93iF26cbX+WlOt5t61QqInXjpiNOqeldRN9zsoon2TQaj6XJeUSJc0WQd5N545Dwr+3Ccc6gIcaMfjrtHmy0ufSXfwjlNbG4LuHs6S135q9BjkDxkJIeoC0K6SKHJuDJcKK8tJlrUTIY0gkFq0utEK7p/uVnZoSmkvpiZ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NRhyfOn1dtmJdeiTenUBrSWzHwpIbod7qWjH4tm5Y45G7HtgHExWlujMK+JcVRCTZCK8M8etryZ8346J0cJQU0WCt48xxl34yOf5HQJFlb1XyGQRnXN6ZjgFtGhLh4WQ4AeI45UKsDg9jBBrGRDjBz71oA7uMPCcxMXOM/MKEPc= Received: by 10.150.97.20 with SMTP id u20mr2274572ybb.17.1197879634885; Mon, 17 Dec 2007 00:20:34 -0800 (PST) Received: by 10.150.52.9 with HTTP; Mon, 17 Dec 2007 00:20:34 -0800 (PST) Message-ID: Date: Mon, 17 Dec 2007 11:20:34 +0300 To: "Stanislav Malyshev" Cc: "troels knak-nielsen" , internals@lists.php.net In-Reply-To: <476582E6.7020808@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <98b8086f0712150818n40056cedyf0aae7a5a08a27b7@mail.gmail.com> <4764CC64.3040608@zend.com> <98b8086f0712160324n653bbb61v17fbf1d364ae3b51@mail.gmail.com> <476582E6.7020808@zend.com> Subject: Re: [PHP-DEV] Re: PATCH: anonymous functions in PHP From: indeyets@gmail.com ("Alexey Zakhlestin") On 12/16/07, Stanislav Malyshev wrote: > > Actually it's the opposite. With create_function, you can bind > > variables, by marshalling them to a string and embed them in the > > That's not binding. But the problem is, seeing this, one expects > closure. And it's no closure. Well, documentation can include the following written using large font: Warning: This is not a closure. PHP doesn't have native means for nested contexts. This construct is just another way of creating usual function during compile-time. (for creating functions in run-time see create_function) -- Alexey Zakhlestin http://blog.milkfarmsoft.com/