Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74231 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13283 invoked from network); 15 May 2014 18:17:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 May 2014 18:17:53 -0000 Authentication-Results: pb1.pair.com header.from=krebs.seb@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=krebs.seb@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.48 as permitted sender) X-PHP-List-Original-Sender: krebs.seb@gmail.com X-Host-Fingerprint: 74.125.82.48 mail-wg0-f48.google.com Received: from [74.125.82.48] ([74.125.82.48:45595] helo=mail-wg0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1E/6F-14382-0D405735 for ; Thu, 15 May 2014 14:17:52 -0400 Received: by mail-wg0-f48.google.com with SMTP id b13so3899911wgh.7 for ; Thu, 15 May 2014 11:17:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=dcYIfR/rwuNJ5Rgo34n5ZDKQVX10oPqsFbuZFdnvyjE=; b=spL7fu1lftjNjRq8gKwqjhfDkrEkiFZFhYQcWgbbk6aa6btg7TX8GPrsw0ENgThhIL taFpBi/1TWwrx3+81P9wLpjh0zypJV2Ue4cEffNAPdAcE8xfA6iKG23LA3ZVy/VDQ4sX IPAhdGORpZ5Kzex1RR44oHyt8kTOjHovHX2m45JChNcEDEWhOl7+c+w13Cla1a2C5uXZ NCVxjSySdAamSE+N04bUQ44Cant98d136XnnlwLu/FyFiei9ArqfDuucd153jg1SQUvQ whtoe04jiX956YBfteG/pEkToWbwrGV+k0w971wKOdldIIa3RfI4gvE4DtvWHCLE9S+d tyOA== X-Received: by 10.180.208.52 with SMTP id mb20mr32311588wic.34.1400177869394; Thu, 15 May 2014 11:17:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.61.212 with HTTP; Thu, 15 May 2014 11:17:09 -0700 (PDT) In-Reply-To: <53750338.5070004@marc-bennewitz.de> References: <53750338.5070004@marc-bennewitz.de> Date: Thu, 15 May 2014 20:17:09 +0200 Message-ID: To: Marc Bennewitz Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a11c38e4687172204f97450ef Subject: Re: [PHP-DEV] PR 659 / #60687: directly call a callable From: krebs.seb@gmail.com (Sebastian Krebs) --001a11c38e4687172204f97450ef Content-Type: text/plain; charset=UTF-8 2014-05-15 20:11 GMT+02:00 Marc Bennewitz : > Hi list > > Since the hype-hint "callable" is out it doesn't catch if the callable > argument is directly callable - so currently using "call_user_func[_array]" > is a requirement. > > @see http://3v4l.org/OYAgk > > class MyClass { > public static function test() { > var_dump(__METHOD__); > } > } > > function call(callable $f) { > $f(); > } > > call('MyClass::test'); > > I have created a PR to make this one possible and would very like to see > this one fixed from PHP-5.6 down to PHP-5.4 were the callable type-hint was > added. > > Is there something I have to do ? > (I'll be not available after the next week for 3 month) Hi I've fixed it :) http://3v4l.org/et7MX > > Marc > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- github.com/KingCrunch --001a11c38e4687172204f97450ef--