From:             ignacio at esviza dot com
Operating system: WinXP
PHP version:      5.1.4
PHP Bug Type:     OCI8 related
Bug description:  PHP crashes when trying to load()/read() CLOB

Description:
------------
PHP crashes giving "PHP has encountered an Access Violation at 015994A9"
when trying to load() or read() an OCI8 CLOB column.

Using:
- OS: Windows XP Professional w/SP2
- PHP: 5.1.4. (ISAPI Server API)
- Server software: Microsoft-IIS/5.1 (bundled with WinXP)
- Data Server: Oracle 8i w/10g instant client


Reproduce code:
---------------
/* assume a table with a CLOBCOLUMN with data */

$con  = ociplogon("user","pass","etc");
$sql  = 'SELECT * FROM tablewithclob WHERE id=1';
$stmt = ociparse($con,$sql);

ociexecute($stmt);
ocifetchinto($stmt, $row, OCI_ASSOC+OCI_RETURN_NULLS );

echo $row['CLOBCOLUMN']->load();

// also crashes with...
echo $row['CLOBCOLUMN']->read(100);


Expected result:
----------------
=> Hello World

Actual result:
--------------
PHP crashes giving "PHP has encountered an Access Violation at 015994A9"

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

Reply via email to