From:
Operating system: Ubuntu 10.04 amd64
PHP version: 5.3SVN-2010-12-28 (snap)
Package: FPM related
Bug Type: Bug
Bug description:malformed header key-value pair on status page
Description:
------------
The header response on the status page is malformed; the content-type is
outputted incorrectly.
Test script:
---------------
#!/usr/bin/python
from StringIO import StringIO
from flup.client.fcgi_app import FCGIApp
from pprint import pprint
import urllib2
def start_response(status, headers):
pass
if __name__ == '__main__':
app = FCGIApp(connect=('localhost', 9000), filterEnviron=False)
env = {
'QUERY_STRING': 'html',
'REQUEST_METHOD': 'GET',
'SCRIPT_FILENAME': '/status',
'SCRIPT_NAME': '/status',
'wsgi.input': StringIO(),
'wsgi.errors': StringIO()
}
result = app(environ=env, start_response=start_response)
Expected result:
----------------
X-Powered-By: PHP/5.3.3-1ubuntu9pre1~lucid
Content-type: application/jsonrequest
{"accepted conn":50,"pool":"www","process manager":"dynamic","idle
processes":2,"active processes":0,"total processes":2}
Actual result:
--------------
X-Powered-By: PHP/5.3.3-1ubuntu9pre1~lucid
application/jsonrequest
Content-type: text/html
{"accepted conn":50,"pool":"www","process manager":"dynamic","idle
processes":2,"active processes":0,"total processes":2}
--
Edit bug report at http://bugs.php.net/bug.php?id=53618&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=53618&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=53618&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=53618&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=53618&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=53618&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=53618&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=53618&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=53618&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=53618&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=53618&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=53618&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=53618&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=53618&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=53618&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53618&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53618&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=53618&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=53618&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=53618&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=53618&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=53618&r=mysqlcfg