From:             amitshahc at hotmail dot com
Operating system: RHEL5, any linux
PHP version:      5.2.9
PHP Bug Type:     Informix related
Bug description:  PHP-Informix ifx_fetch_row, text data type crash solution

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


-- 
Edit bug report at http://bugs.php.net/?id=48505&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=48505&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=48505&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=48505&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=48505&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=48505&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=48505&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=48505&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=48505&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=48505&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=48505&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=48505&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=48505&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=48505&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=48505&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=48505&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=48505&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=48505&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=48505&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=48505&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=48505&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=48505&r=mysqlcfg

Reply via email to