Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60329 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71454 invoked from network); 27 Apr 2012 06:51:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Apr 2012 06:51:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vx0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:35384] helo=mail-vx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/62-54822-5F14A9F4 for ; Fri, 27 Apr 2012 02:51:33 -0400 Received: by vcbfo14 with SMTP id fo14so348117vcb.29 for ; Thu, 26 Apr 2012 23:51:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=MawmOIyBGCp3UuqdixdFGW+bcwsqMfWLtS8Pno71etk=; b=PnFado6u/b+lBjo1zJBgavoDnF697omBUjP7Zt5TMzu4G2zy8JxhwMcU07n+5DwYZ0 cxaSKFGxHUrbt2zL3uS3cIHXCHvhBYrch0eL6SwHt4p6t6pIC4XECq5pggL2d0iyTA+o +gDil41cuedzUgYOLT+kdN8elqR7k0nIL/JNMSvhznstNhTznmf+IQSkffMaDSyVJRqh n+RCEdwUbJdhaqE4FYQIlUOH6wUzdWPsh2gV+/4EF3ZyDxI9DEUNMvoymEqQplxcTtfL xclU72AXWZ6C8D4HSTbqyl4D1CPtNfgVk+0ceS7BiQrv95BvpY+UA+HoBEtQD3g6LTpd cgkQ== Received: by 10.52.15.233 with SMTP id a9mr9038084vdd.34.1335509490763; Thu, 26 Apr 2012 23:51:30 -0700 (PDT) MIME-Version: 1.0 Sender: laruence@gmail.com Received: by 10.220.180.203 with HTTP; Thu, 26 Apr 2012 23:51:10 -0700 (PDT) In-Reply-To: References: Date: Fri, 27 Apr 2012 14:51:10 +0800 X-Google-Sender-Auth: bkYM-QaBJn3BAi1HA2kkgrDoDvU Message-ID: To: Yader Hernandez Cc: PHP Developers Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] call user defined function with args From: laruence@php.net (Laruence) Hi: you can refer to zif_call_user_func, which could be find at http://lxr.php.net/opengrok/xref/PHP_5_4/ext/standard/basic_functions.c#471= 4 thanks On Fri, Apr 27, 2012 at 12:43 PM, Yader Hernandez wrote: > Hello, > > I found this zend_call_function(zend_fcall_info *fci, zend_fcall_info_cac= he > *fci_cache TSRMLS_DC) and many examples using it. I can successfully call > this and it will call the user function for me. I'm interested in learnin= g > how to not only call the function, but also pass arguments to that functi= on. > > Can anyone please point me to where I can see how that's done? > > thx --=20 Laruence =C2=A0Xinchen Hui http://www.laruence.com/