Re: Extension API Dependency Interface
| From: | Varuna Jayasiri | Date: | Wed, 12 Aug 2009 11:49:24 +0000 |
| Subject: | Re: Extension API Dependency Interface | ||
| References: | 1 2 3 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-6576@lists.php.net to get a copy of this message | ||
I have created a new patch file
http://sites.google.com/site/varunajayasiri/eapi2.patch
This includes support for dl(). The callbacks which depend on the loaded
extension will be called when an extension is loaded through dl(). I have
only tested this roughly so far, so there might be some problems with this.
TSRMLS is passed to the callback and added zend_eapi.c to
win32/build/config.w32
Thanks
Varuna
www.xvpj.net
On Sat, Aug 8, 2009 at 8:41 AM, Varuna Jayasiri <vpjayasiri@gmail.com>wrote:
> How nicely does it play with dl() in cli sapi?
>>
>
> Thanks for pointing this out. Currently the dependency interface does not
> handle callbacks when extensions are loaded though dl.
>
> Before implementing callbacks for extensions which are loaded from dl, I
> would like to get your opinion on :
> 1. How should the callbacks be handled? Should the callbacks be called (of
> all extensions which depend on the registered extension) whenever a new
> extension is registered with dl?
> 2. Should the callbacks of the newly registered extension be called
> immediately after MINIT?
>
> Thanks
> Varuna
>
>