php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45136 Setting expose_php = Off in php.ini returns X-Powered-By header for subdomains
Submitted: 2008-05-30 08:55 UTC Modified: 2008-07-11 21:46 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: Ashok dot 893 at gmail dot com Assigned:
Status: Wont fix Package: Apache related
PHP Version: 4.4.8 OS: Linux
Private report: No CVE-ID: None
 [2008-05-30 08:55 UTC] Ashok dot 893 at gmail dot com
Description:
------------
I set the expose_php = Off in php.ini file and restarted the apache server. When I check the response headers for my site, server doesn't return the 'X-Powered-By' header. But when I check the response headers for subdomains, it returns the 'X-Powered-By' header.

Reproduce code:
---------------
I've kept only html codes in both index.php files(my domain and subdomain home page)

Expected result:
----------------
Response Headers
Date	Fri, 30 May 2008 07:26:52 GMT
Server	Apache/1.3.39 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.30 OpenSSL/0.9.7a
Last-Modified	Sat, 29 Dec 2007 07:36:29 GMT
Etag	"44c015-1d89-4775f8fd"
Accept-Ranges	bytes
Content-Length	7561
Keep-Alive	timeout=8, max=100
Connection	Keep-Alive
Content-Type	text/html

Actual result:
--------------
Response Headers
Date	Fri, 30 May 2008 07:25:12 GMT
Server	Apache/1.3.39 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.30 OpenSSL/0.9.7a
Cache-Control	no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires	Thu, 19 Nov 1981 08:52:00 GMT
Pragma	no-cache
X-Powered-By	PHP/4.4.8
Keep-Alive	timeout=8, max=100
Connection	Keep-Alive
Transfer-Encoding	chunked
Content-Type	text/html

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-11 21:46 UTC] jani@php.net
We are sorry, but we can not support PHP 4 related problems anymore.
Momentum is gathering for PHP 6, and we think supporting PHP 4 will
lead to a waste of resources which we want to put into getting PHP 6
ready.


 [2011-04-05 12:16 UTC] rrrrrrrrr at df dot fg
etu rui ri ty
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 19:01:30 2024 UTC