Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74518 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21126 invoked from network); 27 May 2014 12:52:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2014 12:52:34 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.215.10 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.215.10 mail.experimentalworks.net Received: from [217.114.215.10] ([217.114.215.10:36616] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4A/40-18053-D8A84835 for ; Tue, 27 May 2014 08:52:31 -0400 Received: from [192.168.2.31] (ppp-93-104-16-3.dynamic.mnet-online.de [93.104.16.3]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: johannes@schlueters.de) by mail.experimentalworks.net (Postfix) with ESMTPSA id 4113842938; Tue, 27 May 2014 14:53:27 +0200 (CEST) To: Michael Wallner Cc: PHP Internals In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-nx/YiXPlZ1awQfuden0K" Date: Tue, 27 May 2014 14:32:07 +0200 Message-ID: <1401193927.2998.50.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Subject: Re: [PHP-DEV] Linking and autoloading of dependent extensions From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) --=-nx/YiXPlZ1awQfuden0K Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 >=20 > Anybody else other than me interested in this feature? This is a problem hurting me for a while and I'm happy you're looking into it! I'm not sure about the solution here, though. This solution assumes * the extension is inside extension_dir and * a specific naming scheme on the extension's shared library file. Both assumptions might be wrong and might lead to loading the wrong file when different ones are around. This will also lead to a misleading error message ("PHP Warning: Module 'foo' already loaded in Unknown on line 0") where the users just tries to load it once in wrong order. I'm not sure this is better than completely offloading it to the user, as we do now. johannes --=-nx/YiXPlZ1awQfuden0K Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (SunOS) iQEcBAABAgAGBQJThIXHAAoJEH3sTmn8nIPXR8sH/1X7SlUxYRCSihSOQ3jARPds YJ0h7p6kxJP4h1JxaBLili5DFXAYqSBv75kODeKRTt+d0yumiFNsEcyHxRXL4vul WqndkioRZ7fMbHwF0tRuZCMW+Lx+mPZl9igUgsLmOOZh2O5IsetV90vgI1S9Dllb VoPrLZKyEIQzAayHHo0GuVNq72qRiJFtXomIhKuYdeB121i9Y1zJAjRuE5NSlZKf NOG3VR00ICi430xVr1LzF4ih3K2RrFDRiZ9l6axPo+vF5S7+dQeJxvUB88NRCvRq bHNf8obYyuKrXLmlitaiWh5mCegXKhrWyjPM2/ttbHJRCLwbkFRpkVj+TpY8KWM= =zt05 -----END PGP SIGNATURE----- --=-nx/YiXPlZ1awQfuden0K--