php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35573 SELECT query which retrieves BLOB data causes php engine crashes.
Submitted: 2005-12-06 19:07 UTC Modified: 2005-12-16 01:00 UTC
Votes:5
Avg. Score:4.4 ± 0.8
Reproduced:4 of 5 (80.0%)
Same Version:2 (50.0%)
Same OS:3 (75.0%)
From: zkoumalek at seznam dot cz Assigned:
Status: No Feedback Package: Informix related
PHP Version: 5.1.1 OS: Windows XP Prof.
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:
21 - 2 = ?
Subscribe to this entry?

 
 [2005-12-06 19:07 UTC] zkoumalek at seznam dot cz
Description:
------------
I have Informix server version 9.4 on my computer with Windows XP prof and PHP 5.1.1 with ESQL/C Version 9.21. I tried the latest php snapshot with the same result. When I want to retrieve BLOB data from Informix database, my php engine crashes. The problem is with ifx_query() function. When I want to retrieve non BLOB data, everything work perfectly.

Reproduce code:
---------------
$con = ifx_pconnect( "test@myserver", "user", "password" );
echo $con;
$res = ifx_query( "SELECT test_blob FROM test_table", $con );
echo $res;

Expected result:
----------------
$con != NULL;
$res != NULL;

Actual result:
--------------
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:


Php engine crashes and I can see, that there is some problem in ModName: php_ifx.dll.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-06 23:00 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip


 [2005-12-08 14:26 UTC] zkoumalek at seznam dot cz
I tried the latest version with the same result. When I want to retrieve blob data from database, php engine crashes.
 [2005-12-08 17:12 UTC] sniper@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2005-12-16 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2007-11-12 08:09 UTC] jamal8t2 at yahoo dot com
your manual is very informative
 [2007-11-12 08:14 UTC] jamal8t2 at yahoo dot com
I hava php4.3 and apache web server i want to use blob data to show images on browser.
I have store blob data in the data base but the Question is now that how i can read blob data from the data base.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 02:01:30 2024 UTC