"php-config" is for displaying information like this without the need
for further parsing.  Why not just add --zend-module-api
--php-module-api and --zend-ext-api flags to php-config outputting the
number and nothing else?

 - Stig

On Sat, 2002-05-11 at 04:00, Markus Fischer wrote:
>     Hi,
> 
> On Sat, May 11, 2002 at 10:45:12AM +0900, Yasuo Ohgaki wrote : 
> > Markus Fischer wrote:
> > >    Hi,
> > >
> > >    I've modified the out now to look something like
> > >
> > >    $ php -v
> > >    PHP 4.3.0-dev (cli)
> > >    Zend Engine v1.2.1, Copyright (c) 1998-2002 Zend Technologies
> > >
> > >    Derick suggested also to add some other internal version
> > >    numbers like module about for both PHP and Zend.
> > >
> > >    We just need to come up with a decent description of the
> > >    various numbers:
> > >
> > >    ZEND_EXTENSION_API_NO
> > >    ZEND_MODULE_API_NO
> > >    PHP_VERSION_API
> > 
> > How about use the macro names?
> > For example, programmers may try to
> > 
> > find . -name "*.[ch]" | xargs grep -n "PHP_VERSION_API"
> > 
> > to see how API version macros are used.
> 
>     Ok, that would mean getting the PHP version number is
>     something like
> 
>     php -v |grep PHP |grep -v PHP_ | ...
> 
>     sounds ok to me.
> 
>     So a complete output can look like:
> 
>     $ php -v
>     PHP 4.3.0-dev (cli)
>     Zend Engine v1.2.1, Copyright (c) 1998-2002 Zend Technologies
>     PHP_VERSION_API 20020510
>     ZEND_EXTENSION_API_NO 20020510
>     ZEND_MODULE_API_NO 20020510
> 
>     ?
> 
>     Hmm, now looking again, this looks ugly :) Would it make
>     sense to have
> 
>     $ php -v
>     PHP 4.3.0-dev (cli)
>     Zend Engine v1.2.1, Copyright (c) 1998-2002 Zend Technologies
> 
>     and
> 
>     $ php -vv
>     PHP 4.3.0-dev (cli)
>     Zend Engine v1.2.1, Copyright (c) 1998-2002 Zend Technologies
>     PHP_VERSION_API 20020510
>     ZEND_EXTENSION_API_NO 20020510
>     ZEND_MODULE_API_NO 20020510
> 
>     Or is this just unnecessary bloat and let's fire all versions
>     we have to standard output with -v ?
> 
>     - Markus
> 
> -- 
> Please always Cc to me when replying to me on the lists.
> GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
> "I'm not stupid, you know? :)" - Jani Taskinen
> 
> -- 
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php


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

Reply via email to