Re: [PHP-DEV] 4.0.1 Release Candidate packaged From: Kristian Koehntopp (kk <email protected>)
Date: 06/26/00

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>