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
 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC