Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74072 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26282 invoked from network); 8 May 2014 22:02:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 May 2014 22:02:49 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.46 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.219.46 mail-oa0-f46.google.com Received: from [209.85.219.46] ([209.85.219.46:58433] helo=mail-oa0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 42/27-15882-80FFB635 for ; Thu, 08 May 2014 18:02:48 -0400 Received: by mail-oa0-f46.google.com with SMTP id i4so3917257oah.33 for ; Thu, 08 May 2014 15:02:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=Fp7dpf/Iw2UvQBU2z/NUtchs2/5C326k/ffWCLXONfg=; b=b0muXdH/T4y38KL812IJx48dE3nNzGMqGc+5h5OIu2f8cb5j40PaG0DdDiH4EyDOTz 8ZkqKOqlsfX9VMZeqXZyRgY6KZ4A3IKVL11FnisIoW2X6bFi3UfQU2n/FK7jI9DtIhlC DUW6FBxRQhvAQdzbzIS5YTKSpbJ10Al/jq/mRXARMCBTfbdzfITTsLtyDu+1rFensLiW GKtuGHwapM1VAM8Vg+ClcVDcmGnpvjCf85WTa8yM2/pckfnNIUWD4Bfq0TqT306BZs4x ebLF4ZuFD1gabicqUTRIH09G5/5NDRcsqj/jIFNz4CVDw5BZYZdyEkGzmv3pyvQYjp3M ck5g== MIME-Version: 1.0 X-Received: by 10.182.144.194 with SMTP id so2mr8538881obb.31.1399586565647; Thu, 08 May 2014 15:02:45 -0700 (PDT) Sender: morrison.levi@gmail.com Received: by 10.76.77.100 with HTTP; Thu, 8 May 2014 15:02:45 -0700 (PDT) Date: Thu, 8 May 2014 16:02:45 -0600 X-Google-Sender-Auth: sXRjUbtRiB_V-a4-1o5nXw41Us4 Message-ID: To: internals Content-Type: multipart/alternative; boundary=089e0158ab9613f26004f8eaa4da Subject: Anonymous functions inside static methods. From: levim@php.net (Levi Morrison) --089e0158ab9613f26004f8eaa4da Content-Type: text/plain; charset=UTF-8 See this 3v4l (contents at bottom of the message): http://3v4l.org/pHkf7 I think Bar::bar() should definitely return 'Bar' (currently returns 'Foo') but what about the Bar::Baz() call? Until today I didn't even know you could declare a static anonymous function, so I'm not really sure what the expected behavior is. Script contents: