php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25946 The specified CGI application misbehaved
Submitted: 2003-10-22 05:31 UTC Modified: 2003-10-22 12:19 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: nelson_cerqueira at sapo dot pt Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 4.3.3 OS: Windows XP Pro
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nelson_cerqueira at sapo dot pt
New email:
PHP Version: OS:

 

 [2003-10-22 05:31 UTC] nelson_cerqueira at sapo dot pt
Description:
------------
I have a mysql database with a blob field, i  the page that return the binary image from an iframe, the first time that i call the parent, 2 in 3 times this message apears:

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:

After this if i reload the page the image apears.


Reproduce code:
---------------
"parent.php"
...<td width="307"><div align="right">
<?php
	echo "<IFRAME SRC='imagens.php?id=$imagem' WIDTH='307' HEIGHT='230' FRAMEBORDER='0' name='img'  noresize marginheight='0' scrolling='no'></IFRAME>";
?>
</div></td>...

"imagens.php"
<?php
$id_img=$_REQUEST['id'];
if($id_img) {
   header( "Content-type: image/jpeg");
   $db_img="labsig";
   $mysql_access_img = mysql_connect("localhost");
   mysql_select_db($db_img, $mysql_access_img);
   
$result_img = mysql_query("SELECT imagem FROM imagem_projectos WHERE id=$id_img", $mysql_access_img);

$data_img = mysql_result($result_img,0,"imagem");
echo $data_img;
	
};	   
?>

Expected result:
----------------
I expected that when i load the parent the image loads, but it don't always load, only 1 in 3 times, or less.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-22 12:19 UTC] iliaa@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

Dupe of bug #25863
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 08:01:28 2024 UTC