php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34389 CGI Error (HTTP headers) with persistent oracle connecitons
Submitted: 2005-09-06 13:37 UTC Modified: 2005-09-06 14:04 UTC
From: oliver at teqneers dot de Assigned:
Status: Not a bug Package: IIS related
PHP Version: 4.4.0 OS: Win2k
Private report: No CVE-ID: None
 [2005-09-06 13:37 UTC] oliver at teqneers dot de
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-06 14:04 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 10:01:29 2024 UTC