php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3046 standalone php -q ignores expose_php so test/testall shows fail all
Submitted: 1999-12-25 01:55 UTC Modified: 1999-12-25 08:59 UTC
From: apis at visi dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Latest CVS (25/12/1999) OS: Solaris 7
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: apis at visi dot com
New email:
PHP Version: OS:

 

 [1999-12-25 01:55 UTC] apis at visi dot com
standalone php -q used by test/testall will fail all tests even
though tests are actually passing because the new expose_php
is not set to false and the output will contain
X-Powered-By: PHP *version* in the header and the
test scripts do not expect same.
There seems to be logic to check for expose_php in mod_php3.c but
under the php -q case in main.c, no logic check is
done for expose_php.
   I did a quick workaround in main.c:1133  by just setting
php3_ini.expose_php = 0; and then a re-compile and
test/testall then show they are actually passing.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-12-25 08:59 UTC] rasmus at cvs dot php dot net
Fixed
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 07:00:02 2026 UTC