On Thu, Jan 8, 2015 at 3:36 AM, Derick Rethans <der...@php.net> wrote:
> On Wed, 7 Jan 2015, Stanislav Malyshev wrote:
>
>> > 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
>>
>> Why it needs to be "at the same time"? I don't see any use case where
>> it would matter if you run one command or two commands to install it.
>
> Well, I do. And it's not *just* installing two packages. It is also
> adding extra lines to every script to load code that your extension
> *depends* on. I would pick an "pecl install" over a "pecl install this",
> "composer install that", "add a few lines to a script" as an
> installation method anytime.

It is not. pecl install can install anything you want already. Having
php scripts installed when it installs an extension. The only question
is where to put them. But I have said that many times in this thread
already.

>> > "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
>>
>> It seems to me you're reinventing packaging systems.
>
> I want to solve the issue where I have a PHP library that is tied to C
> code, without having to deal with random tools and depencies for no
> reason. PHP packaging systems don't do that.

It does.

>> I don't see why we should invent our own and why our own should take
>> form of putting PHP code into compiled binaries (yet less why suddenly
>> it is the "only way"). Many languages have extension systems and
>> packages that involve binaries - Perl, Python, Ruby, etc. AFAIK none
>> of them puts source code into binaries.
>
> Most of those languages don't depend as heavily on parts written in C
> though. They will only break out to C for specific reasons. PHP
> extensions are the other way around. It's almost always C, but some opt
> to also use some PHP to make developement faster.

And here we go again, showing that we actually try to tackle the wrong problem.

I have discussed with Laruence earlier and will make a patch + demo
extension to show my thoughts. It may end this circular discussion and
start one about concrete needs and implementations issues instead.

-- 
Pierre

@pierrejoye | http://www.libgd.org

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to