Re: Re: cvs: php4 /sapi/cgi cgi_main.c /sapi/cli php_cli.c

From: Date: Sat, 11 May 2002 02:00:57 +0000
Subject: Re: Re: cvs: php4 /sapi/cgi cgi_main.c /sapi/cli php_cli.c
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-83887@lists.php.net to get a copy of this message
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

« previous php.dev (#83887) next »