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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
35 + 27 = ?
Subscribe to this entry?

 
 [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: Tue Jan 18 11:03:30 2022 UTC