Bug #71175 [Opn->Fbk]: Crash when use ibase_blob_echo
| From: | laruence@php.net | Date: | Mon, 21 Dec 2015 04:19:16 +0000 |
| Subject: | Bug #71175 [Opn->Fbk]: Crash when use ibase_blob_echo | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-198074@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71175&edit=1
ID: 71175
Updated by: laruence@php.net
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