#37470 [NEW]: PHP_INI: expose_php = Off
| From: | clover at fromru dot com | Date: | Wed, 17 May 2006 06:23:10 +0000 |
| Subject: | #37470 [NEW]: PHP_INI: expose_php = Off | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-97237@lists.php.net to get a copy of this message | ||
From: clover at fromru dot com
Operating system: WIN32
PHP version: 5.1.4
PHP Bug Type: Output Control
Bug description: PHP_INI: expose_php = Off
Description:
------------
I set the "ErrorDocument 404 /HTTP_NOT_FOUND.php" in the apache2
configuration and "expose_php = Off" in the PHP_INI file.
And I using telnet to the localhost:80 to look headers and content:
GET /non_existing_page HTTP/1.0
Host: localhost
HTTP response header ends with \r\n\r\n\r\n instead of \r\n\r\n
I changed my option "expose_php = On" and fixed this problem
Reproduce code:
---------------
I have no code in my /HTTP_NOT_FOUND.php, only html from the first line:
<html>
<head>
...
Expected result:
----------------
HTTP/1.1 404 Not Found
Date: Tue, 16 May 2006 11:40:01 GMT
Server: Apache
Content-Length: 136
Connection: close
Content-Type: text/html
<html>
<head>
...
Actual result:
--------------
HTTP/1.1 404 Not Found
Date: Tue, 16 May 2006 11:40:01 GMT
Server: Apache
Content-Length: 136
Connection: close
Content-Type: text/html
<html>
<head>
...
--
Edit bug report at http://bugs.php.net/?id=37470&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37470&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37470&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37470&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37470&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37470&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37470&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37470&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37470&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37470&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37470&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37470&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37470&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37470&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37470&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37470&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37470&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37470&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37470&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37470&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37470&r=mysqlcfg