Bug #13383 Updated: The specified CGI application misbehaved by not returning a complete set of HTT
| From: | enrique dot javier at cox dot net | Date: | Mon, 11 Mar 2002 22:47:24 +0000 |
| Subject: | Bug #13383 Updated: The specified CGI application misbehaved by not returning a complete set of HTT | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-2259@lists.php.net to get a copy of this message | ||
ID: 13383
Updated by: enrique.javier@cox.net
Reported By: smanish@mailandnews.com
Status: Open
Bug Type: InterBase related
Operating System: Windows 2000 with IIS 5.0
PHP Version: 4.0.6
New Comment:
I got the same error just with a fresh installation of PHP 4.1.1 on
Windows 2000 Professional, and IIS 5.0; I can actually reproduce the
error; also, I don't think is InterBase related, or for that matter,
any application specific related issue.
Problem
-------
Just trying to run a simple test; such as
<html><head><title>PHP Test</title></head>
<body>
<?php echo "Hello World<p>"; ?>
</body></html>
will cause the error message
"CGI Error
The specified CGI application misbehaved by not returning a complete
set of HTTP headers. The headers it did return are:"
to be displayed; the actual source code of this page is
<head><title>Error in CGI Application</title></head>
<body><h1>CGI Error</h1>The specified CGI application misbehaved by not
returning a complete set of HTTP headers. The headers it did return
are:<p><p><pre></pre>
Note the double <p> tags. The parsed output for the above example from
php is
<html><head><title>PHP Test</title></head>
<body>
Hello World<p></body></html>
Solution
--------
The problem goes away by checking the 'Check that files exist' option
in the Application Extension Mapping for PHP file extensions, such as
'.php'.
Previous Comments:
------------------------------------------------------------------------
[2001-09-21 20:27:44] smanish@mailandnews.com
<?php
//header ("Content-type: image/gif") ;
?>
<html>
<body>
<?php
$dbh = ibase_connect("localhost:c:\program
files\borland\interbase\bin\Binary_Data.gdb", "SYSDBA", "masterkey");
$sth = ibase_query($dbh, "select description, bin_data from
binary_data where id = 5") ;
$row = ibase_fetch_row($sth) ;
print ("Description : $row[0]") ;
$blobid = ibase_blob_open($row[1]) ;
$tempibase = tempnam("temp", "TMP") ;
$tempibase .= ".gif" ;
//$fp = fopen($tempibase, "w") ;
while($data = ibase_blob_get($blobid, 1024))
{
// fputs($fp, $data) ;
$finaldata .= $data ;
}
//fclose($fp) ;
ibase_blob_close($blobid) ;
ibase_free_query($sth) ;
//print ("Got the blob field") ;
//print ($finaldata) ;
//echo "<br><center><img src=$tempibase ></center>" ;
/*$blobid = ibase_blob_create() ;
ibase_blob_add($blobid, $data) ;
$blob_id_save = ibase_blob_close($blobid) ;*/
ibase_close($dbh) ;
?>
</body>
<html>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=13383&edit=1