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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 22:01:32 2024 UTC