Re: [PHP-DEV] 4.0.1 Release Candidate packaged From: Stefan Livieratos (stefan <email protected>)
Date: 06/26/00

Hi Kristian,

please look through the appended patch, which adds a function
called sapi_module_name and seems to work.

Regards
Stefan

-----Ursprüngliche Nachricht-----
Von: Kristian Koehntopp <kk <email protected>>
An: Zeev Suraski <zeev <email protected>>
Cc: <php-dev <email protected>>; <php-windows <email protected>>; <group <email protected>>
Gesendet: Montag, 26. Juni 2000 10:07
Betreff: Re: [PHP-DEV] 4.0.1 Release Candidate packaged

> Zeev Suraski wrote:
> > PHP 4.0.1RC has been packaged. If there are no special problems found
in
> > it, it'll be repackaged as 4.0.1 and released on Wednesday.
>
> I do not know if it exists, but could you please add a function
> to PHP4.0.1 which determines if we are running as a CGI or as a
> module. I am thinking along the lines of a function whioch
> returns the first field of the sapi_module structure as a
> string. This would also allow to determine the exact name of the
> SAPI interface being used, and would be trivial to implement.
>
> Or do we already have means to determine which SAPI PHP is
> currently using, which I am not aware of?
>
>
> Having such a function has the benefit that scripts can decide
> if SAPI specfic functions such as the avilability of PHP based
> HTTP authentication or the getallheaders() function are present.
>
> I'd like to see a backport of this mechanism into PHP3 as well.
>
> Kristian
>
> --
> Kristian Köhntopp, NetUSE AG Siemenswall, D-24107 Kiel
> Tel: +49 431 386 436 00, Fax: +49 431 386 435 99
> Using PHP3? See our web development library at http://phplib.netuse.de/
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
> For additional commands, e-mail: php-dev-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
>
>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>