Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52973 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89057 invoked from network); 5 Jun 2011 21:16:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jun 2011 21:16: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.214.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.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:54828] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3B/42-26000-532FBED4 for ; Sun, 05 Jun 2011 17:16:37 -0400 Received: by bwz18 with SMTP id 18so3329081bwz.29 for ; Sun, 05 Jun 2011 14:16:34 -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=q5Qx+qseRKY+65pOGtHhe+feoUSf7u5QqjZ/jS5gMd8=; b=mCY9sZT6E4D/Kg6+dxHjg8U23GQNvvkFUN9dVNdFwCpp8ZEkZ2MHQQvFmPPrbqB9f9 pjXsQ5vbnwum+ECMFzteiyaCmCHH8ktJMVZZf0AW8fQ7tV18l+CjIOXki/8Pn7AqGdYa aXBUGAOjdR834J0DSE5pmogZuU6FhmpB8lUK4= 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=RNWeE7aXVXBh02lOid2AgHEldyRj0y/b7nB87c7Ir9hxiszPdJzwHdNR/MdruV6otH nfRD3NSz76mGRw8eBKHSXkRV5R1Th0wznxd/WvhEPOoGyXIFgV6lwJnDhnABOPioBBO0 ntZcSmHVLMFq3em1cmjPzxzJ/Vpamljmh6+fk= Received: by 10.204.11.22 with SMTP id r22mr4076286bkr.172.1307308594136; Sun, 05 Jun 2011 14:16:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.56.66 with HTTP; Sun, 5 Jun 2011 14:16:14 -0700 (PDT) In-Reply-To: <4DEBEC20.0@sugarcrm.com> References: <4DEBDDE3.7060208@sugarcrm.com> <4DEBEC20.0@sugarcrm.com> Date: Sun, 5 Jun 2011 18:16:14 -0300 Message-ID: To: Stas Malyshev Cc: internals Content-Type: multipart/alternative; boundary=0003255585b25d86d404a4fd80fa Subject: Re: [PHP-DEV] $arr = array('Hello', 'world'); $arr(); From: felipensp@gmail.com (Felipe Pena) --0003255585b25d86d404a4fd80fa Content-Type: text/plain; charset=UTF-8 2011/6/5 Stas Malyshev > Hi! > > > We have the code to initialize the call from a object variable, and string >> variable (function only) in this exact opcode ZEND_INIT_FCALL_BY_NAME, >> which >> now treat the array case as well, there is no other place doing such >> stuff. >> > > What about call_user_func() implementation? It must be doing pretty much > the same thing. > > 1. We do not use zend_fcall_info stuff in the VM (which zend_is_callable works in) 2. We have to use zend_do_fcall_common_helper instead of zend_call_function() in the VM -- Regards, Felipe Pena --0003255585b25d86d404a4fd80fa--