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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 00:01:30 2024 UTC