php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4296 OCIBindByName core dumps
Submitted: 2000-05-02 17:29 UTC Modified: 2006-07-17 08:08 UTC
From: doussot at gifrance dot com Assigned:
Status: Closed Package: OCI8 related
PHP Version: 4.0 Release Candidate 1 OS: Linux
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: doussot at gifrance dot com
New email:
PHP Version: OS:

 

 [2000-05-02 17:29 UTC] doussot at gifrance dot com
Linux + Oracle 8.1.5.0.2

The following block works:

 $query = "INSERT INTO messages VALUES ($num, :msg_body)";
 $msg_body = stripslashes($msg_body);
 $stmt = OCIParse($cnx, $query);
 OCIBindByName($stmt, ":msg_body", &$msg_body, -1);
 OCIExecute($stmt);

Replacting the 4th line by:

OCIBindByName($stmt, ":msg_body", &$msg_body, -1, OCI_B_CLOB);

My oracle table has a CLOB field (for msg_body).
This first statement works as long as strlen($msg_body) < 32067. I suppose I need the second one to fix my length problem but then Apache core dumps.

Trying to get a trace ...



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-27 18:10 UTC] derick@php.net
Did you get your trace?

ALso please try latest version of php (4.0.1pl2) and see if the problem still is there.
 [2000-08-18 13:06 UTC] waldschrott@php.net
Closed due to missing user feedback.
 [2002-03-07 06:26 UTC] adonadeo at sogei dot it
Linux +Apache + php 4.0.8 + Oracle 8.1.5.0.2

My oracle table has a LONG field (str_out).
The statement to obtain filed works as long as strlen(str_out) < 32067, otherwise i get error from oracle. I suppose that Oracle not work with fields LONG greater then 32067.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri May 24 15:01:26 2019 UTC