Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53085 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96532 invoked from network); 6 Jun 2011 21:50:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jun 2011 21:50:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=felipensp@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=felipensp@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: felipensp@gmail.com X-Host-Fingerprint: 209.85.160.42 mail-pw0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:41229] helo=mail-pw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0D/03-23189-CAB4DED4 for ; Mon, 06 Jun 2011 17:50:36 -0400 Received: by pwj3 with SMTP id 3so2498024pwj.29 for ; Mon, 06 Jun 2011 14:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=ZrJlK+wMg7zNfjgEz5SZmiZhj8hucsf4W/yuMUkKla8=; b=ttOllgDZNGcRdxXUd4Fwsh2EdEIHGYs3NBjlR465zW1qQ87+PrJd6s+FPANRzijksj 71tRn6TaAxKEKsfcXIFJQ/sLDstztfK+YPU3jhDpt9dpSYq9I/yeuqLWRs/FGKasKt+8 0b2qpxiZMoMZrXec7wsdGscdHywz4mhnRCJL4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=SqIf7GfACRccBA4IvnbGI2RIja2fvPDxG80wogeEj8bFUmHktAwxLd3S3VvXsSCRHM HPaijj/Vypfc0rreBFi379RofUT7MpirJJFaT16h2QZIvbu3gf4yxBelcFlsabsLe81W OsH3Zkvk4BERBA+HdpBtjZlXc3NKc/LfuekuU= Received: by 10.142.147.19 with SMTP id u19mr885597wfd.119.1307397033263; Mon, 06 Jun 2011 14:50:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.246.21 with HTTP; Mon, 6 Jun 2011 14:50:13 -0700 (PDT) In-Reply-To: <4DEC809C.5000306@zend.com> References: <4DEC809C.5000306@zend.com> Date: Mon, 6 Jun 2011 18:50:13 -0300 Message-ID: To: Dmitry Stogov Cc: internals Content-Type: multipart/alternative; boundary=000e0cd3098ebf84cf04a5121770 Subject: Re: [PHP-DEV] $arr = array('Hello', 'world'); $arr(); From: felipensp@gmail.com (Felipe Pena) --000e0cd3098ebf84cf04a5121770 Content-Type: text/plain; charset=UTF-8 Hi, 2011/6/6 Dmitry Stogov > Hi Felipe, > > I like the idea. It makes indirect method calls less expensive. > > I would add a hint to specializer, to eliminate small overhead for regular > function calls. > > } else if (OP1_TYPE != IS_CONST && > EXPECTED(Z_TYPE_P(function_name) == IS_ARRAY) && > zend_hash_num_elements(Z_ARRVAL_P(function_name)) == 2) { > > Thanks. Dmitry. Dmitry: Oh, right. I added the check for OP2_TYPE != IS_CONST, thanks for reviewing. Christopher Jones: Alright, I'll write a page in the wiki for the record. All: Committed in 5.4 and trunk now. Thanks for the comments, folks! :) -- Regards, Felipe Pena --000e0cd3098ebf84cf04a5121770--