php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12191 Certificate Environment Variables missing with ISAPI
Submitted: 2001-07-16 11:51 UTC Modified: 2001-10-23 18:19 UTC
From: e9025902 at stud2 dot tuwien dot ac dot at Assigned:
Status: Closed Package: IIS related
PHP Version: 4.0.6 OS: Win2K
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: e9025902 at stud2 dot tuwien dot ac dot at
New email:
PHP Version: OS:

 

 [2001-07-16 11:51 UTC] e9025902 at stud2 dot tuwien dot ac dot at
I am using the PHP 4.0.2 ISAPI-Modul with IIS 5.0 on Win2K which set the certificate environment variables 
(e.g. $HTTP_SEVER_VARS["CERT_SUBJECT"]) correctly.

Now I want to switch to PHP 4.0.6 but the variables are
missing in the ISAPI-Modul (phpinfo() shows them under
ISAPI but NOT under Environment!) but in CGI they are
here again.

greetings
  Christian


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-23 14:34 UTC] jmoore@php.net
Can you send me a list of these variables names and we can get this fixed.

Thanks,

- James
 [2001-07-24 06:32 UTC] jmoore@php.net
User Feedback:
==============
Hi James!

> Can you send me a list of these variables names 
> and we can get this fixed.

The variable names I am missing are:

CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYSIZE
CERT_SERIALNUMBER
CERT_SERVER_ISSUER
CERT_SERVER_SUBJECT
CERT_SUBJECT

I am attaching the output of the following script:

<?php
  echo $CERT_SUBJECT . "<BR>";
  echo $HTTP_ENV_VARS["CERT_SUBJECT"];

  phpinfo();
?>

As you will see the CGI-version knows both variables, while the
ISAPI-version
knows neither!


Another thing I noticed with PHP 4.0.2:

I have to use $HTTP_ENV_VARS["CERT_SUBJECT"] with CGI and
$HTTP_SERVER_VARS["CERT_SUBJECT"] with ISAPI.

Many thanks for your efforts
   Christian

 <<phpinfo406cgi.html>>  <<phpinfo406isapi.html>> 

===========================
Ill add these variables to the list as soon as I get 5 mins to think.

- James
 [2001-10-23 18:19 UTC] jmoore@php.net
This is to do with the way that IIS passes the varaibles to PHP in CGI/ISAPI mode. This isnt really a bug but perhaps this sort of thing (server set variables) should be somthing we standardise in 4.x or 5.0.

Cheers,

- James
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 19:01:32 2025 UTC