Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60330 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78943 invoked from network); 27 Apr 2012 08:07:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Apr 2012 08:07:05 -0000 Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.42 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 74.125.83.42 mail-ee0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:34670] helo=mail-ee0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 68/73-54822-6A35A9F4 for ; Fri, 27 Apr 2012 04:07:03 -0400 Received: by eekb57 with SMTP id b57so79985eek.29 for ; Fri, 27 Apr 2012 01:07:00 -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=+ltKZtl0cQl2VyyIjQutLLVmeNkJw5EruIHk+4i4yns=; b=xkCNc3TBG/6HtQbEdvG/IoFBE9e7U3oqMFgQjCZbI06ZBfq18N+2/gylaLQ0UXDF4R 6OkfSjRYQsXY5XtUM3G5jbpotelN4dhIAF5khuxfmhCagamuvfYQzE5VYHOTsmfQrAOi xzbIj/zBFmIOFrHblOcuizF+c7RnVSfQMIeIv3D8VW8pqZ9R9ri8zcRaJtaeBlHeCd1a h+6yqpKAtzO+epgoIOEFR+goKM4ak6xgzVTa1DvhR95udeJUMlE0PjM4As3FlMUth+y/ mMOWvKIy2+GHFDpbCcXO0R7Z6uNcge9mm3YAxurOmYMZ8CMPFTZ4m2UgbeOgdOWOkSYt zN+w== Received: by 10.14.28.76 with SMTP id f52mr1432506eea.117.1335514019445; Fri, 27 Apr 2012 01:06:59 -0700 (PDT) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.213.29.83 with HTTP; Fri, 27 Apr 2012 01:06:19 -0700 (PDT) In-Reply-To: References: Date: Fri, 27 Apr 2012 10:06:19 +0200 X-Google-Sender-Auth: kR7qW-wosFPawzBzqMABEMXApSo Message-ID: To: Laruence Cc: Yader Hernandez , PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] call user defined function with args From: jpauli@php.net (jpauli) You might be interested by zend_call_method_with_[XXX]_params() as well http://lxr.php.net/xref/PHP_5_3/Zend/zend_interfaces.h Julien.Pauli On Fri, Apr 27, 2012 at 8:51 AM, Laruence wrote: > Hi: > =A0you 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#4= 714 > > 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_ca= che >> *fci_cache TSRMLS_DC) and many examples using it. I can successfully cal= l >> this and it will call the user function for me. I'm interested in learni= ng >> how to not only call the function, but also pass arguments to that funct= ion. >> >> Can anyone please point me to where I can see how that's done? >> >> thx > > > > -- > Laruence =A0Xinchen Hui > http://www.laruence.com/ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >