Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80248 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36979 invoked from network); 7 Jan 2015 10:15:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jan 2015 10:15:52 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; 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:42236] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4A/02-17382-7570DA45 for ; Wed, 07 Jan 2015 05:15:51 -0500 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 6DFBBE202D; Wed, 7 Jan 2015 10:15:48 +0000 (GMT) Date: Wed, 7 Jan 2015 10:15:48 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Stanislav Malyshev cc: francois@tekwire.net, 'Pierre Joye' , 'Sara Golemon' , 'Benjamin Eberlei' , 'PHP Internals' In-Reply-To: <54AC2D12.7060209@gmail.com> Message-ID: References: <54AAF98B.4020709@gmail.com> <001b01d029bb$fa687fc0$ef397f40$@tekwire.net> <54AC2D12.7060209@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 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. cheers, Derick