Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80271 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35732 invoked from network); 8 Jan 2015 11:43:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jan 2015 11:43:31 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.173 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.217.173 mail-lb0-f173.google.com Received: from [209.85.217.173] ([209.85.217.173:49246] helo=mail-lb0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4F/02-21915-16D6EA45 for ; Thu, 08 Jan 2015 06:43:30 -0500 Received: by mail-lb0-f173.google.com with SMTP id z12so2387892lbi.4 for ; Thu, 08 Jan 2015 03:43:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=uNaDUV/uxPXVGsEzjWIN1RTC4asRGy1WsSAfdtdKctU=; b=oI1yQb2kfL+sGPjZE/UMOHifyxaZwG9p/SNOXAUfiG06gfZT2p7No7TMFR4AQAExcm C8mY9BfxDd+/y24XTQVoUp+CWzuUSJhyKmlr37vmMmhRU+7xA+Mlo7/6PQs7KZXHSrF6 DMSizQU9rRztxb/eFUPWtZyZ5UCQ1qTVw4x10pOVZI6w5PcXjau8p5N9eqm72Lo2/k6z n3/Mn/5NELIqt4VgG/hnzboMtfWiGsBPV3YQJ6rSdoutlcCRJ5io6KEIN3qc2yNnham5 vaeejcP+K64f8KSES0QpUn9yNtSrIR1BbT8i+eybINRHdhjxnz6Lbg7/jtcRdqS5b8H2 mErA== MIME-Version: 1.0 X-Received: by 10.112.130.34 with SMTP id ob2mr12813929lbb.78.1420717406208; Thu, 08 Jan 2015 03:43:26 -0800 (PST) Received: by 10.112.154.133 with HTTP; Thu, 8 Jan 2015 03:43:26 -0800 (PST) In-Reply-To: References: <54AAF98B.4020709@gmail.com> <001b01d029bb$fa687fc0$ef397f40$@tekwire.net> <00a201d02ac7$406a4830$c13ed890$@tekwire.net> Date: Thu, 8 Jan 2015 03:43:26 -0800 Message-ID: To: Benjamin Eberlei Cc: =?UTF-8?Q?Fran=C3=A7ois_Laupretre?= , Derick Rethans , PHP internals , Sara Golemon , Stanislav Malyshev Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Extension Prepend Files From: pierre.php@gmail.com (Pierre Joye) hi, On Thu, Jan 8, 2015 at 3:41 AM, Benjamin Eberlei wrot= e: > > > On Wed, Jan 7, 2015 at 11:14 PM, Fran=C3=A7ois Laupretre > wrote: >> >> > De : Pierre Joye [mailto:pierre.php@gmail.com] >> > >> > ... here, >> > it is proposed to bundle scripts that will be executed at runtime like >> > any >> > other script, except that nothing can be done with them, not even >> > disable >> > them if not required (like using its own glue codes). >> >> I agree. Bundling scripts in extensions to execute them at each RINIT is= , >> IMO, not a good idea (mostly for performance reasons and lack of control= , as >> you note), but I keep thinking that a mechanism to embed PHP scripts in >> extensions and make them available via a common stream wrapper can be >> useful. What I don't like is the fact to execute them automatically at e= very >> RINIT. I prefer to let the extension free to load its PHP code when its >> logic decides it is needed. > > > To be honest, I don't see the use case of shipping optional PHP code insi= de > an extension. As the user of an extension I want all the functions/classe= s > to be available all the time, no matter if the extension developer wrote > everything in C or in PHP. > > For optional code there is Composer/PEAR/php include path, this is alread= y a > solved problem. So you are saying that people should be forced to use your glue code instead of implementing their own when it fits better? I can only disagree. But even then, it does not make the bundling of php code in binaries a smart idea. Cheers, --=20 Pierre @pierrejoye | http://www.libgd.org