php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48505 PHP-Informix ifx_fetch_row, text data type crash solution
Submitted: 2009-06-09 13:47 UTC Modified: 2009-06-09 17:52 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: amitshahc at hotmail dot com Assigned:
Status: Closed Package: Informix related
PHP Version: 5.2.9 OS: RHEL5, any linux
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: amitshahc at hotmail dot com
New email:
PHP Version: OS:

 

 [2009-06-09 13:47 UTC] amitshahc at hotmail dot com
Description:
------------
Solution: related to PHP Bugs: #32954 & #8715.


I think it's memory issue with apache handling the informix result id. with text datatype. i don't know exactly as i am not ESQL/C developer. but i used a combination of settings before executing the select query which have the text field in the result.

Set 
ifx_blobinfile_mode(1);
ifx_textasvarchar(0);

will return the blob id, in text field value instead of the giving text contect directly into that field. 

then do 
ifx_get_blob($row['text_field_name']). 
will return the file name. and then read that file content, store it in the variable. and delete the file. 

doing 
ifx_free_blob($row['text_field_name']); 
again crashes the php script sometimes. so don't do it. 

but you can do ifx_free_result($resultId); at the end of the script.

All The Best...
Amit Shah


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-06-09 13:51 UTC] amitshahc at hotmail dot com
sorry, this bug means not solutions but let us consider it as a trick or tip or the way to overcome the bug.

Thanks
 [2009-06-09 17:52 UTC] kalle@php.net
The informix database driver is not bundled with PHP, plus it doesn't seems to be maintained anymore:
http://pecl.php.net/package/informix

Try re-report the bug there, even though I wouldn't expect a response, sorry
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 16:01:31 2024 UTC