Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80230 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50779 invoked from network); 6 Jan 2015 11:37:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jan 2015 11:37:56 -0000 Authentication-Results: pb1.pair.com header.from=kontakt@beberlei.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=kontakt@beberlei.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain beberlei.de from 74.125.82.173 cause and error) X-PHP-List-Original-Sender: kontakt@beberlei.de X-Host-Fingerprint: 74.125.82.173 mail-we0-f173.google.com Received: from [74.125.82.173] ([74.125.82.173:62943] helo=mail-we0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FA/63-26786-119CBA45 for ; Tue, 06 Jan 2015 06:37:55 -0500 Received: by mail-we0-f173.google.com with SMTP id q58so9484929wes.32 for ; Tue, 06 Jan 2015 03:37:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=MNw0Vzv/96LleMIJGETy4hSq+f077/OA8fFq6uM7BGc=; b=b3jdsUdt0ncw92pH22bXUROKm4pSSl2AuCZH3H3bd3dFqqsB19BtRo3P1D1835HMx8 aECwDIGp9Ih6UzJdzcy8AbiJ1xeLcsotdNbeglC7EBjvIZ34zbU0SpNHEwqOgOW1dxyX EuOo9u91/ILfpKoJGCN5azIMdS90dM2LEefNWewQLu0ZsRy3Xg6uY5s/33fVPFmu/bdU uAJRQqgRHjuZsOB6AyFfat+wJHbb5qjrPMS1rXOaj1ytuS0VqUG8wTQz/X1vLWaXAE8I 6lm32/0DpnpM0kRt7ZrxUaoNlPeG0ewc+P53HfIvZbz6Ut2zaQJTkqwvWCCdm99sloIz caUQ== X-Gm-Message-State: ALoCoQko+mxdaLkFuWalRSeyLds/dy9tfgPi7BdQfE5KnL1eTHNTmcam0QMjGHRs9VvIK0xOQsuc MIME-Version: 1.0 X-Received: by 10.194.200.234 with SMTP id jv10mr192162973wjc.110.1420544270533; Tue, 06 Jan 2015 03:37:50 -0800 (PST) Received: by 10.194.57.73 with HTTP; Tue, 6 Jan 2015 03:37:50 -0800 (PST) X-Originating-IP: [77.11.82.73] In-Reply-To: References: <54AAF98B.4020709@gmail.com> Date: Tue, 6 Jan 2015 12:37:50 +0100 Message-ID: To: Derick Rethans Cc: Stanislav Malyshev , Sara Golemon , PHP Internals Content-Type: multipart/alternative; boundary=047d7bb70bb2a22157050bfa3cf2 Subject: Re: [PHP-DEV] [RFC] Extension Prepend Files From: kontakt@beberlei.de (Benjamin Eberlei) --047d7bb70bb2a22157050bfa3cf2 Content-Type: text/plain; charset=UTF-8 On Tue, Jan 6, 2015 at 12:24 PM, Derick Rethans wrote: > On Mon, 5 Jan 2015, Stanislav Malyshev wrote: > > > > 2) Embedded text sections. It's possible to place the raw PHP code > > > into the compiled .so/.dylib/.dll file and fetch it out for > > > compilation at runtime. This enables easy bundling of the loaded > > > > I guess it is possible, but why - what's wrong with plain old files and > > phars? > > Deployment and installation. Right now, "pecl install extension" doesn't > really allow you to also install **and** load a PHP script on every > request. Such a PHP script could define extra classes, that are written > in PHP - because maintainting them as a C implementation would be way > more work. Having users install another set of PHP files for every > project is error prone, and frankly, bad for user experience. I can > definitely see the use case here, and it's probably something we'd want > to use for the new MongoDB driver. > Yes the deployment aspect isn't discussed in my RFC and that is an important part. Frankly most of the ideas presented here are way better than the hack I have come up with, the question is how to proceed to refine this idea? The general plan seems to be to have a way to embed PHP code into the shared object, for example using Autoconf Macros (like the embed extension mentioned above does) > > cheers, > Derick > --047d7bb70bb2a22157050bfa3cf2--