php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38814 expose_php has no effect on SERVER_SOFTWARE contents
Submitted: 2006-09-13 17:02 UTC Modified: 2006-09-14 13:52 UTC
From: DL at LoaderUSA dot net Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.1.6 OS: Windows XP Pro SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: DL at LoaderUSA dot net
New email:
PHP Version: OS:

 

 [2006-09-13 17:02 UTC] DL at LoaderUSA dot net
Description:
------------
Setting expose_php to 0 or Off or false doesn't affect the value of the SERVER_SOFTWARE variable whenever PHP is enabled.


I have ensured that there is only a single php.ini file on the system.  The following lines are from phpinfo() -

phpinfo()
PHP Version => 5.1.6

System => Windows NT TEQUILA 5.1 build 2600
Build Date => Aug 23 2006 16:31:18
 .
Configuration File (php.ini) Path => C:\PHP-516\php.ini
 .
expose_php => Off => Off
 .
 .

The Apache httpd.conf contains the following lines -
#
# PHP support
#
LoadModule php5_module "C:/PHP-516/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/PHP516/"
#

The Apache SERVER_SOFTWARE variable always contains the following whenever PHP is enabled in httpd.conf -
 SERVER_SOFTWARE="Apache/2.0.59 (Win32) PHP/5.1.6"

Obviously, I can set the Apache ServerSignature directive off to get rid of the information generated HTML.

Let me know if you need any other information.


Reproduce code:
---------------
N/A


Expected result:
----------------
N/A


Actual result:
--------------
N/A

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-13 18:13 UTC] tony2001@php.net
Restart the web-server.
 [2006-09-13 20:44 UTC] DL at LoaderUSA dot net
Both the system and the web-server had been restarted several times before I gathered the information to submit the bug.
 [2006-09-14 13:52 UTC] DL at LoaderUSA dot net
Please close this bug report as bogus.  The value on the PHPIniDir configuration statement in the Apache conf file was incorrect.  Sorry for wasting your time.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 04:01:32 2024 UTC