Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55910 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38843 invoked from network); 23 Oct 2011 15:39:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Oct 2011 15:39:28 -0000 Authentication-Results: pb1.pair.com header.from=quickshiftin@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=quickshiftin@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) X-PHP-List-Original-Sender: quickshiftin@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:48519] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2B/A1-22525-F2534AE4 for ; Sun, 23 Oct 2011 11:39:27 -0400 Received: by bkbzv15 with SMTP id zv15so7315577bkb.29 for ; Sun, 23 Oct 2011 08:39:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=uN9jko9dfmNWQ8jH04RISnoLtVyq9XpVjITRCC9phWg=; b=qV+v9t1WmMXn0jBlJyPDwSORvXZBBUbUU8gsUpsQOJdQtE7Rtxg3pHo0opbhXSnM7r QILd5VQJHdehfENs6ytULtTyAqCHxQCj3yXcNt5BAFjoBDAqr1WrHDdo2nAgOQheMp3B yLYp3gR5jlraJJ8BgeyV2hEvXVYI94Ifyscbs= MIME-Version: 1.0 Received: by 10.204.0.67 with SMTP id 3mr10098549bka.55.1319384363310; Sun, 23 Oct 2011 08:39:23 -0700 (PDT) Received: by 10.204.35.205 with HTTP; Sun, 23 Oct 2011 08:39:23 -0700 (PDT) In-Reply-To: <4EA3B952.1010608@sugarcrm.com> References: <4EA3B952.1010608@sugarcrm.com> Date: Sun, 23 Oct 2011 09:39:23 -0600 Message-ID: To: Stas Malyshev Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=0015175707e44c203704aff91cc5 Subject: Re: [PHP-DEV] Revisit: zend_call_method() - n number of arguments From: quickshiftin@gmail.com (Nathan Nobbe) --0015175707e44c203704aff91cc5 Content-Type: text/plain; charset=UTF-8 On Sun, Oct 23, 2011 at 12:50 AM, Stas Malyshev wrote: > Hi! > > > On 10/22/11 2:36 AM, Nathan Nobbe wrote: > >> Hi, >> >> Another old issue I'd like to rehash with the upcoming release around the >> corner [1]. >> >> I patched 5.4 alpha2 for review [2]. >> > > I think better idea would be to add another API function > (zend_call_method_ex?), that implements arbitrary argument count (either via > array or via varargs) and make zend_call_method be a case of it, maybe. This > way you don't have to break existing API and also don't have to stop at 4. Hi Stas, That's what this patch does, there is a new function zend_call_method_multi, which takes an array, and I've revised zend_call method to use it. I could change it to varargs if that is preferred. thanks, -nathan --0015175707e44c203704aff91cc5--