From:             oliver at teqneers dot de
Operating system: Win2k
PHP version:      4.4.0
PHP Bug Type:     IIS related
Bug description:  CGI Error (HTTP headers) with persistent oracle connecitons

Description:
------------
My environment is an IIS/6.0 on a Win2K system with PHP4.4.0.

When trying to forward a request to another PHP script using the header(
'Location: ...' ) function, the following error occurs:

----------------------------------
CGI Error
The specified CGI application misbehaved by not returning a complete set
of HTTP headers.
----------------------------------

This error only occurs if:
- the target script is a PHP script INCLUDING PHP code
- the source script has been connected to an Oracle DB with a PERSISTENT
connection (I know it does not make that many sense to use it under CGI.
anyway.)
- web server is running PHP in CGI mode

Btw: I also tried to play around with php.ini settings of
fastcgi.impersonate and cgi.rfc2616_headers which did not help either.
Current setting for these are 
fastcgi.impersonate = 1
cgi.rfc2616_headers (DEFAULT, because not set)

I have also tried hints described in PHP Bug 9852 and 8744 without positiv
results.

Reproduce code:
---------------
try to use the following files to reproduce the error:

----------- forward.php ----------
<?
$connection     = OCIPLogon( 'user', 'passwd', 'host');

header( 'Location: target.php?'.rand() );
?>
----------- /forward.php ----------


----------- target.php ----------
<? echo 'it works'; ?>
----------- /target.php ----------


Expected result:
----------------
it works

Actual result:
--------------
CGI Error
The specified CGI application misbehaved by not returning a complete set
of HTTP headers.

-- 
Edit bug report at http://bugs.php.net/?id=34389&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34389&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34389&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34389&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34389&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34389&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34389&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34389&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34389&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34389&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34389&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34389&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34389&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34389&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34389&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34389&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34389&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34389&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34389&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34389&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34389&r=mysqlcfg

Reply via email to