Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80250 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40243 invoked from network); 7 Jan 2015 10:21:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jan 2015 10:21:45 -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.216.51 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.51 mail-qa0-f51.google.com Received: from [209.85.216.51] ([209.85.216.51:60845] helo=mail-qa0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 75/C2-17382-8B80DA45 for ; Wed, 07 Jan 2015 05:21:44 -0500 Received: by mail-qa0-f51.google.com with SMTP id i13so2050104qae.10 for ; Wed, 07 Jan 2015 02:21:42 -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; bh=u3r42JmYCYNWdxH0XPYhEsaS3p/jLiLv20S+ADSWxxw=; b=0k1Vk6ZVq0caMK145uyhV7KlgHcEe55jRiHWkitt+9bYknfOucnK9LAMhymIetS9kL M6+IgKCoBYDGOhhMgb54cVLMkaukTEAHAQCXN68MwuXKtVb6M0gLbt+eTJgCODZ2WyZv XiEh7WCTwssehZNTiPpEJtYBqexyGCYpAqA3bke/mpEtX7qGKlz07/ndQRo8CwXkPKp/ Aay9xoOOp3g8S+H7KsnhH0pSjT7sWorRg2RJ/RKV0rITPGKV/lXASbuXhtasda+5H2GV khB2+HAFcXr7RGn41BthMxCfGNpSacDxJRMdMvgbL+S0mbNWYyKiVlho/UMk24DSsh+b qq3w== MIME-Version: 1.0 X-Received: by 10.140.92.33 with SMTP id a30mr3079724qge.30.1420626102198; Wed, 07 Jan 2015 02:21:42 -0800 (PST) Received: by 10.140.22.106 with HTTP; Wed, 7 Jan 2015 02:21:42 -0800 (PST) Received: by 10.140.22.106 with HTTP; Wed, 7 Jan 2015 02:21:42 -0800 (PST) In-Reply-To: References: <54AAF98B.4020709@gmail.com> <001b01d029bb$fa687fc0$ef397f40$@tekwire.net> <54AC2D12.7060209@gmail.com> Date: Wed, 7 Jan 2015 02:21:42 -0800 Message-ID: To: Derick Rethans Cc: PHP internals , Sara Golemon , Stanislav Malyshev , Benjamin Eberlei , francois@tekwire.net Content-Type: multipart/alternative; boundary=001a1139c2fc2e292a050c0d4ab2 Subject: Re: [PHP-DEV] [RFC] Extension Prepend Files From: pierre.php@gmail.com (Pierre Joye) --001a1139c2fc2e292a050c0d4ab2 Content-Type: text/plain; charset=UTF-8 On Jan 7, 2015 5:15 PM, "Derick Rethans" wrote: > > On Tue, 6 Jan 2015, Stanislav Malyshev wrote: > > > > But, if we consider the PHP code as an integral part of the > > > extension, this should be avoided, as C and PHP code need to be kept > > > in sync. > > > > Again, there is a multitude of solutions for this, all in the realm of > > packaging. It's not like we've just encountered the idea of software > > package having more than one file. > > There is currently no way to install an extension and a PHP library > package at the same time. "pecl" can't install PHP libraries, and > "composer" can't install extensions. And even if it did, keeping the > versions in sync is not easy at all. Only way to solve this properly is > to allow PHP code embeded in the extension. Just like the couchdb ext > does, or Benjamin wants to do with the qafooprofiler, or HHVM does it > through HNI. Pickle integration is almost finished, that solves your worries about composer and pecl extensions. And if you ready other replies carefully I have proposed cleaner solution (than bundling scripts). And no, bundling code is not the easy way, it is a can of worms, to implement, maintain and even worst, for distros. --001a1139c2fc2e292a050c0d4ab2--