Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80227 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46121 invoked from network); 6 Jan 2015 11:24:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jan 2015 11:24:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:49702] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F8/62-26786-2E5CBA45 for ; Tue, 06 Jan 2015 06:24:19 -0500 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id BBE97EA085; Tue, 6 Jan 2015 11:24:14 +0000 (GMT) Date: Tue, 6 Jan 2015 11:24:14 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Stanislav Malyshev cc: Sara Golemon , Benjamin Eberlei , PHP Internals In-Reply-To: <54AAF98B.4020709@gmail.com> Message-ID: References: <54AAF98B.4020709@gmail.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] [RFC] Extension Prepend Files From: derick@php.net (Derick Rethans) 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. cheers, Derick