Re: Linking 2 PHP extensions
| From: | Antony Dovgal | Date: | Tue, 20 May 2008 11:00:38 +0000 |
| Subject: | Re: Linking 2 PHP extensions | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-5464@lists.php.net to get a copy of this message | ||
On 20.05.2008 14:55, ksheera sagar wrote:
Why would you need to use _PHP_ function Afunc() inside another PHP function BFunc()? Export an internal C function (which is actually called in Afunc()) and use it in BFunc(). To do that you need to make sure that A is loaded before B, which is what PHP_ADD_EXTENSION_DEP() in config.m4 takes care of. -- Wbr, Antony DovgalHi, 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()?