From: nelson_cerqueira at sapo dot pt
Operating system: Windows XP Pro
PHP version: 4.3.3
PHP Bug Type: CGI related
Bug description: The specified CGI application misbehaved
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.
--
Edit bug report at http://bugs.php.net/?id=25946&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25946&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25946&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25946&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25946&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25946&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25946&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25946&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25946&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25946&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25946&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25946&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25946&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25946&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25946&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25946&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25946&r=float