php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57254 Segmentation fault
Submitted: 2006-09-21 09:52 UTC Modified: 2007-05-22 15:16 UTC
From: jeff dot diademi at gmail dot com Assigned:
Status: No Feedback Package: PDO_INFORMIX (PECL)
PHP Version: 5.1.6 OS: Suse 9.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jeff dot diademi at gmail dot com
New email:
PHP Version: OS:

 

 [2006-09-21 09:52 UTC] jeff dot diademi at gmail dot com
Description:
------------
If there is NO sbspace configured in Informix Dynamic Server

When inserting a blob in a table the following code produce a segmentation fault.


Reproduce code:
---------------
$query = "insert into doc (data) values (?)";
$stmt = $dbh->prepare($query);

$file = "/etc/motd";
$fp = fopen($file,'rb');

$content = fread($fp, filesize($file));

$stmt->bindParam(1, $content, PDO::PARAM_LOB);

$dbh->beginTransaction();
$stmt->execute();
$dbh->commit();

Expected result:
----------------
Fatal error: Uncaught exception 'PDOStatement' with message 'SQLSTATE=xxxx  ...'


Actual result:
--------------
Seg fault.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-12 11:41 UTC] manas at us dot ibm dot com
Hi Jeff,
   What version of CSDK are you using? Can you try verifying this with the latest CSDK?. You can download it from 
http://www-306.ibm.com/software/data/informix/tools/csdk/

Thanks,
-Manas
 [2007-04-12 16:05 UTC] kfbombar at us dot ibm dot com
Awaiting feedback
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Jan 20 07:03:34 2022 UTC