Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37885 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67486 invoked from network); 26 May 2008 09:54:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 May 2008 09:54:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=ksheera@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ksheera@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.142.189 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: ksheera@gmail.com X-Host-Fingerprint: 209.85.142.189 ti-out-0910.google.com Received: from [209.85.142.189] ([209.85.142.189:46399] helo=ti-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 05/C5-35134-2D88A384 for ; Mon, 26 May 2008 05:54:27 -0400 Received: by ti-out-0910.google.com with SMTP id u3so1202215tia.17 for ; Mon, 26 May 2008 02:54:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=Jd+Yo8vPbdXGNCuGVf0zsOpLpQCLszqc3NvspWGytU0=; b=NtrpQW+OcyZ1nzkrb/N45X+4hhJ5ncPMYb+kPutaC5hxyQMxqjgHC+YbdCK/nnhEfbj3sJ8ppoxFtvGgOkV6Mt14V87u61dFdbdeVENbEtUm1yxyrq1QF/JYE8s76Y6StLnS3lNKbuzIFByUw36xRGly9J8kmHMHPC3/qsfcy98= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=EKfXd9sOuG0g14KKKEDbVarZH/CujN5mjk+ZM1P8vV+TP59EtxXgAb/zRxHvVYtTPxBobDzYQ9LaAn8ucGZwyaZKAW0f3X4j5j21cV5W9b/dLyOTF4P53T8ahMuNi9tYSBFbBZHKwKOc1DZP7cIYlVHWsLADHFSs2euGrcp4RzM= Received: by 10.110.84.2 with SMTP id h2mr599169tib.47.1211795663108; Mon, 26 May 2008 02:54:23 -0700 (PDT) Received: by 10.110.61.19 with HTTP; Mon, 26 May 2008 02:54:23 -0700 (PDT) Message-ID: <53d5ca000805260254r71a82238r57b90aeb45935cff@mail.gmail.com> Date: Mon, 26 May 2008 15:24:23 +0530 To: internals@lists.php.net MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6897_23910517.1211795663131" Subject: Help Calling PHP_FUNCTION's from C ( inside PHP extension's function) From: ksheera@gmail.com ("ksheera sagar") ------=_Part_6897_23910517.1211795663131 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Consider two *PHP* extension A and B. Extension A exports a PHP_FUNCTION to userspace.. Let s call it Afunc(). Extension B exports a PHP_FUNCTION to userspace.. Let s call it Bfunc(). Now, Is there any way to use Afunc1() inside the body of Bfunc()? I don't want to call back to userspace. I want to call the PHP_FUNCTION of one extension in some other extension's C function. PHP_FUNCTION internally expands by a macro to C prototype. Am not getting a proper idea in calling them by passing arguments and getting values returned. I have been trying hard in this regard. Please help me in this. ------=_Part_6897_23910517.1211795663131--