Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74522 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30091 invoked from network); 27 May 2014 13:59:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2014 13:59:59 -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 209.85.220.178 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 209.85.220.178 mail-vc0-f178.google.com Received: from [209.85.220.178] ([209.85.220.178:56554] helo=mail-vc0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 26/E1-18053-E5A94835 for ; Tue, 27 May 2014 09:59:58 -0400 Received: by mail-vc0-f178.google.com with SMTP id ij19so7371729vcb.9 for ; Tue, 27 May 2014 06:59:55 -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:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=OklfUMlWojrqkOdkBDKnJf/eKU1s/QchzBhK13WFhZo=; b=ka4LwtXKynJU6/Y/OV3FqKlyYTjXdb1IZXvdOkrY6eC/bn1CLp8tb6jZ6qBaaUobgY jXjbkjjsMMdqii1K7gHQsDThklrE4t8XWG07tZcgvyuv0165XqvbsKUcy/kkTu3K86dk cqVkKBTZ+t9YBzHZdo+cr5MXiTsvtX9E8xUE84OnIywcFQa9zoait3gzMts7SrvAxXHr sgcj0EQI9D7qf3p5ocqY2EXUtcY2bRGi9ZAQhYGLTJv5Hj/tYdsYJCa8E2tK9SDVgN7H KI7KQVX+t+W6YU/XanvgkxdgzX+wbmhuJrg75NxG5bup2Zi5fyokGD+rV6E0nhJP/myv Vghw== X-Received: by 10.58.29.106 with SMTP id j10mr17889031veh.31.1401199195071; Tue, 27 May 2014 06:59:55 -0700 (PDT) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.220.81.68 with HTTP; Tue, 27 May 2014 06:59:14 -0700 (PDT) In-Reply-To: <7C23F0EA-ED2C-4EF6-8C11-F95C28E92A8E@gmail.com> References: <1401193927.2998.50.camel@guybrush> <7C23F0EA-ED2C-4EF6-8C11-F95C28E92A8E@gmail.com> Date: Tue, 27 May 2014 15:59:14 +0200 X-Google-Sender-Auth: j6xNKYyzDV5ctYExRYkvH1SZ1pQ Message-ID: To: Michael Wallner Cc: =?UTF-8?Q?Johannes_Schl=C3=BCter?= , Michael Wallner , PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Linking and autoloading of dependent extensions From: jpauli@php.net (Julien Pauli) On Tue, May 27, 2014 at 3:30 PM, Michael Wallner w= rote: > > On 27 05 2014, at 15:12, Julien Pauli wrote: > > On Tue, May 27, 2014 at 2:32 PM, Johannes Schl=C3=BCter > 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 : > https://github.com/jpauli/php-src/compare/extensions_improvements > > > Sure, I=E2=80=99d be glad to combine efforts. Yet, I don=E2=80=99t see yo= u linking dependent > extensions, so I=E2=80=99m not sure what your approach is to even load th= e 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