Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34068 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13845 invoked by uid 1010); 17 Dec 2007 18:16:15 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 13830 invoked from network); 17 Dec 2007 18:16:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Dec 2007 18:16:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:49932] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0E/24-20687-DECB6674 for ; Mon, 17 Dec 2007 13:16:15 -0500 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 17 Dec 2007 20:16:11 +0200 Received: from [192.168.16.91] ([192.168.16.91]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 17 Dec 2007 10:16:05 -0800 Message-ID: <4766BCE5.5080505@zend.com> Date: Mon, 17 Dec 2007 10:16:05 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Alexey Zakhlestin CC: troels knak-nielsen , internals@lists.php.net References: <98b8086f0712150818n40056cedyf0aae7a5a08a27b7@mail.gmail.com> <4764CC64.3040608@zend.com> <98b8086f0712160324n653bbb61v17fbf1d364ae3b51@mail.gmail.com> <476582E6.7020808@zend.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 17 Dec 2007 18:16:05.0649 (UTC) FILETIME=[E3A62810:01C840D8] Subject: Re: [PHP-DEV] Re: PATCH: anonymous functions in PHP From: stas@zend.com (Stanislav Malyshev) > 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) It doesn't help. Nobody reads the docs if he thinks he understands how it should work anyway. Having disclaimer in the manual doesn't do much - we are not worried about being sued, we are worried about feature looking one way and actually working other way. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com