|  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

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);

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-27 18:10 UTC]
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]
Closed due to missing user feedback.
 [2002-03-07 06:26 UTC] adonadeo at sogei dot it
Linux +Apache + php 4.0.8 + Oracle

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: Tue Apr 23 09:01:27 2024 UTC