Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66644 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40813 invoked from network); 15 Mar 2013 14:21:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2013 14:21:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=krebs.seb@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=krebs.seb@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.175 as permitted sender) X-PHP-List-Original-Sender: krebs.seb@gmail.com X-Host-Fingerprint: 74.125.82.175 mail-we0-f175.google.com Received: from [74.125.82.175] ([74.125.82.175:44212] helo=mail-we0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 31/50-59234-D7E23415 for ; Fri, 15 Mar 2013 09:21:49 -0500 Received: by mail-we0-f175.google.com with SMTP id x8so3261558wey.6 for ; Fri, 15 Mar 2013 07:21:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=A7YO2reESAvi9qEmniO3Q87BBdZzW/0G3HCPhq9ZmnA=; b=sgLjwkVS3MNDeesfW8jsBFsu3cTfqsUvGj4ptma5eGizeoQozEVXrwtDQuxe+UUHbf ql27U3xWgyYwAKbvxCI92iPt6XI8R9KwkWpYXpfGNTru/FCZE0Z8hqhPE8eYZ18R5iR2 8GptB/Vojo2ukBBh6aa9FQvO6y41QXxPLZ/M4KIky2kuKLeKlTkq/aQ5SXkJq8/Wbv6h VGptLveLsWfKnADHT656wCAPqeWq05Z1udT1AA/GhJiIZGoCEUATRLuGlGEV/FFdGZyf bZUDiUs/LRz5PZaV9uMcViJ7kyj+47LckSnebMI85Ujgh6U7kfY0Ny2o3vcT9hSIibMM jefA== X-Received: by 10.180.108.3 with SMTP id hg3mr3459984wib.33.1363357306535; Fri, 15 Mar 2013 07:21:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.217.94.71 with HTTP; Fri, 15 Mar 2013 07:21:26 -0700 (PDT) In-Reply-To: <51432E01.7090502@mrclay.org> References: <51432E01.7090502@mrclay.org> Date: Fri, 15 Mar 2013 15:21:26 +0100 Message-ID: To: Steve Clay Cc: PHP Internals Content-Type: multipart/alternative; boundary=e89a8f3ba6e3f5484504d7f75bb0 Subject: Re: [PHP-DEV] Could we kill call_user_func? From: krebs.seb@gmail.com (Sebastian Krebs) --e89a8f3ba6e3f5484504d7f75bb0 Content-Type: text/plain; charset=ISO-8859-1 2013/3/15 Steve Clay > I'm sure this question has been discussed before, so if anyone can point > to me to links or briefly recap I'd appreciate it. > > Why can't we make $someCallable() always work? E.g. http://3v4l.org/FLpAq > > I understand the problem of $obj->foo() where ->foo is a callable > property. The workaround could be: > > ($obj->foo)(); > > call_user_func() just seems so ugly now that we have nicer syntax in so > many other areas. > You don't need to use it, if you don't like it. > > > Steve Clay > -- > http://www.mrclay.org/ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- github.com/KingCrunch --e89a8f3ba6e3f5484504d7f75bb0--