Bug #13383: The specified CGI application misbehaved by not returning a complete set of HTT
| From: | smanish at mailandnews dot com | Date: | Sat, 22 Sep 2001 00:27:44 +0000 |
| Subject: | Bug #13383: The specified CGI application misbehaved by not returning a complete set of HTT | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-66281@lists.php.net to get a copy of this message | ||
From: smanish@mailandnews.com
Operating system: Windows 2000 with IIS 5.0
PHP version: 4.0.6
PHP Bug Type: Unknown/Other Function
Bug description: The specified CGI application misbehaved by not returning a complete set of HTT
<?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 bug report at: http://bugs.php.net/?id=13383&edit=1