php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37417 PHP crashes when trying to load()/read() CLOB
Submitted: 2006-05-12 09:43 UTC Modified: 2006-05-12 09:53 UTC
From: ignacio at esviza dot com Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 5.1.4 OS: WinXP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ignacio at esviza dot com
New email:
PHP Version: OS:

 

 [2006-05-12 09:43 UTC] ignacio at esviza dot com
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"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-12 09:53 UTC] tony2001@php.net
Duplicate of #37292.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 22:01:28 2024 UTC