Bug #71175 [Opn->Fbk]: Crash when use ibase_blob_echo

[email protected]
Newsgroups php.bugs
Message-ID <[email protected]>
Edit report at https://bugs.php.net/bug.php?id=71175&edit=1

 ID:                 71175
 Updated by:         [email protected]
 Reported by:        zedex at rambler dot ru
 Summary:            Crash when use ibase_blob_echo
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            InterBase related
 Operating System:   Linux SLES-11 SP2
 PHP Version:        7.0.1
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2015-12-20 22:32:27] zedex at rambler dot ru

Description:
------------
Can't select blob data from data field (FireBird 2.5.5). 
In PHP 5.6.16 all working perfect !
if use print function result simple is: 0x00000500080

Test script:
---------------
<?
$host = 'localhost:/opt/firebird/examples/test.fdb';
$username = 'sysdba';
$password = 'password';

$dbh = ibase_connect($host, $username, $password);
$query = "SELECT B_DATA FROM TEST2 WHERE ID='9'";
$result = ibase_query($dbh, $query);
$data = ibase_fetch_object($result);
if ($data) {
  header("Content-type: application/pdf");
  header('Content-disposition: attachment; filename="test.pdf"');
  ibase_blob_echo($data->B_DATA);
} else { header('HTTP/1.0 404 Not Found'); }
ibase_close($dbh);
?>



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=71175&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.