[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PHP Policy Draft: API version



On 2006-04-11, sean finney <seanius@debian.org> wrote:
> yes, perhaps we should add something to clarify this.  in the meantime
> i've at least changed the specific section to mention using
> php-configN instead of the ugly sed stuff.

I've made another discovery:

php-configN --phpapi

Returns just the module api version (and confusingly not the same as
PHP_API_VERSION in php.h), which is exactly what you need for creating
the dependency.  An example:

$ php-config5 --extension-dir
/usr/lib/php5/20051025
$ php-config5 --phpapi
20051025

>> While I'm here, is there an existing PHP binary module whose packaging
>> conforms to current "best practice" which I can use as a guide?  If
>> there's a better place to ask, please point me there...
>
> i think this question may have been answered for you already, but i'd
> just like to add a suggestion that in addition to attempting to
> follow the draft and other peoples' packages, you also keep
> a critical eye to what you and others are doing (as well as what the
> draft says), and if you see anything that doesn't seem right, bring it
> up here.

Will do.

Cheers,
    Olly



Reply to: