Re: Linking and autoloading of dependent extensions
| From: | Julien Pauli | Date: | Tue, 27 May 2014 13:59:14 +0000 |
| Subject: | Re: Linking and autoloading of dependent extensions | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-74522@lists.php.net to get a copy of this message | ||
On Tue, May 27, 2014 at 3:30 PM, Michael Wallner <mike.php.net@gmail.com> wrote:
>
> On 27 05 2014, at 15:12, Julien Pauli <jpauli@php.net> wrote:
>
> On Tue, May 27, 2014 at 2:32 PM, Johannes Schlüter <johannes@schlueters.de>
> wrote:
>> Hi,
>>
>> On Tue, 2014-05-27 at 14:13 +0200, Michael Wallner wrote:
>>> I've prepared a tiny POC which enables linking and autoloading of
>>> dependent extensions:
>>> https://github.com/m6w6/php-src/compare/module_deps
>>>
>>> Anybody else other than me interested in this feature?
>
> Hey
>
> I once worked on extension improvements with Joe.
> We stopped at extension dependency management, as this needs deep rethink..
> I plan to write an RFC and work on the subject for PHP-Next, perhaps we
> could merge our ideas ?
> Code is here :
> q9‹\EPÚ˜
> | òÂBQhttps://github.com/jpauli/php-src/compare/extensions_improvements
>
>
> Sure, I’d be glad to combine efforts. Yet, I don’t see you linking dependent
> extensions, so I’m not sure what your approach is to even load the top
> extension of the dependency chain?
Yeah, that was the idea we discussed but never implemented.
Beeing able to declare a weigthed heap of extensions as dependencies,
and having the system try to load them using the weigth as load
order, and recover cleanly in case on error. All should have taken
care of recursion.
Julien