From:             miguel at withoutabox dot com
Operating system: Ubuntu Linux 6.06
PHP version:      5.2.1
PHP Bug Type:     OCI8 related
Bug description:  oci_fetch_array hangs with OCI_FETCH_LOBS

Description:
------------
When I try to do a oci_fetch_array with OCI_RETURN_LOBS in the  mode
string the page hangs indefinitely.  No errors are produced but the page
never even times out.  

OCI version is 1.2.3 from PECL


Reproduce code:
---------------
<?php

$db = "(DESCRIPTION=(ADDRESS_LIST = (ADDRESS = (PROTOCOL =
TCP)(HOST=1.1.1.1)(PORT = 1521)))(CONNECT_DATA=(SID=FESTPROD)))";

$usr = "notreal";
$pwd = "itsfake";

$connection = oci_connect($usr, $pwd,$db);

$query = "SELECT * from CATEGORY where category_id=1111";

$statement = oci_parse($connection, $query);
oci_execute($statement);

while ($row = oci_fetch_array($statement, (OCI_ASSOC+OCI_RETURN_LOBS))) {
   echo $row['COMPLETE_RULES']."<br>";  //this will output LOB's content
}
?>

Expected result:
----------------
Lots of words ..........


.....end of words<br>

Actual result:
--------------
Page hangs

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

Reply via email to