Hi,

    $ php -v
    4.3.0-dev (cli)

    but

    $ php -m
    Running PHP 4.3.0-dev
    Zend Engine v2.0.0-dev, Copyright (c) 1998-2002 Zend
    Technologies

    [PHP Modules]
    xml
    tokenizer
    standard
    session
    posix
    pcre
    overload
    mysql
    mbstring
    ctype

    [Zend Modules]


    I think we should add the sapi type output also to the -m
    switch ?

    Another thing, seeing the output I don't quite understand why
    write PHP version and Zend version anyway to the -m output ?

    As I understand it, -m should list the modules.

    Shouldn't we move the Zend Engine version output to php -v
    too and let -m only list the modules -v only all the version
    numbers ?

    - Markus

On Thu, May 09, 2002 at 09:36:45AM -0000, Sander Roobol wrote : 
> sander                Thu May  9 05:36:45 2002 EDT
> 
>   Modified files:              
>     /php4/sapi/cgi    cgi_main.c 
>     /php4/sapi/cli    php_cli.c 
>   Log:
>   Added the current SAPI to the output of php -v
>   
>   
> Index: php4/sapi/cgi/cgi_main.c
> diff -u php4/sapi/cgi/cgi_main.c:1.161 php4/sapi/cgi/cgi_main.c:1.162
> --- php4/sapi/cgi/cgi_main.c:1.161    Thu May  2 13:19:42 2002
> +++ php4/sapi/cgi/cgi_main.c  Thu May  9 05:36:43 2002
> @@ -875,7 +875,7 @@
>                                                       SG(headers_sent) = 1;
>                                                       SG(request_info).no_headers = 
>1;
>                                               }
> -                                             php_printf("%s\n", PHP_VERSION);
> +                                             php_printf("%s (%s)\n", PHP_VERSION, 
>sapi_module.name);
>                                               php_end_ob_buffers(1 TSRMLS_CC);
>                                               exit(1);
>                                               break;
> Index: php4/sapi/cli/php_cli.c
> diff -u php4/sapi/cli/php_cli.c:1.20 php4/sapi/cli/php_cli.c:1.21
> --- php4/sapi/cli/php_cli.c:1.20      Sun May  5 13:11:04 2002
> +++ php4/sapi/cli/php_cli.c   Thu May  9 05:36:45 2002
> @@ -523,7 +523,7 @@
>                                       SG(headers_sent) = 1;
>                                       SG(request_info).no_headers = 1;
>                               }
> -                             php_printf("%s\n", PHP_VERSION);
> +                             php_printf("%s (%s)\n", PHP_VERSION, sapi_module.name);
>                               php_end_ob_buffers(1 TSRMLS_CC);
>                               exit(1);
>                               break;
> 
> 
> 
> -- 
> PHP CVS Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
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

Reply via email to