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:22 + 9 = ?

Subscribe to this entry?

[2010-04-13 12:05 UTC] will at flourishlib dot com

Description:
------------
When retrieving BLOB data from a DB2 LUW 9.7.1 database using this extension, I receive a resource back. When I try to use such a resource with stream_get_contents(), PHP segfaults. This happens with PHP 5.2.12 in Windows XP, PHP 5.1.6 on CentOS 5 and PHP 5.3.1 on Fedora 12.
When retrieve CLOB data from the SYSCAT.CHECKS catalog view, and trying to use stream_get_contents(), on CentOS 5 with 5.1.6, I get a blank string. With 5.2.12 on Windows and 5.3.1 on Fedora, PHP segfaults.
The columns can be retrieved using the ibm_db2 extension without issues on all platforms, and the pdo_odbc extension in Windows.
Expected result:
----------------
I should be able to retrieve a string of character or binary data from the resource.
Actual result:
--------------
Either a segmentation fault or a blank string.

Hi,
I will analyze the issue and will update you.
Regards,
Ambrish Bhargava

[2010-07-30 16:51 UTC] will at flourishlib dot com

I've found that even using fetch() causes the issue, if I try
to get the stream content after I've fetched all of the rows.
I don't know if fetching just one more row causes it, or if it
is because I am exhausting the cursor.
I worked around this by preemptively decoding all resources as
I am looping over the returned rows.

[2014-04-30 14:38 UTC] tomaz at inetis dot com

Any progress on this? I have the same problem on php 5.5.11 and pdo ibm 1.3.3
Program received signal SIGSEGV, Segmentation fault.
lob_stream_read (stream=0x7ffc804e2998, buf=0x7ffc80542290 "\200\"T\200\374\177", count=8192) at /home/tomazd/projekti/nlb/izracuni-php/src/PDO_IBM-1.3.3/ibm_statement.c:141