php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29559 Compile failure with oci8 and Oracle 10
Submitted: 2004-08-07 00:36 UTC Modified: 2004-08-07 14:21 UTC
From: zaa397e at tninet dot se Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: Irrelevant OS: Slackware/Linux 2.4.22
Private report: No CVE-ID: None
 [2004-08-07 00:36 UTC] zaa397e at tninet dot se
Description:
------------
I have an old version of php (4.3.3), but I hardly ever use it anyway. Anyhow I did use briefly it to connect with an Oracle 10.1 database, which required a few changes to use oci8 that I thought I could document before forgetting all about it.

So, anyway, what I had to do to get oci8 to compile and at least work to the extent that I tried was:
In file ext/oci8/oci8.c
>>> line 4804
  CALL_OCI_RETURN(connection->error, OCICollAppend(
  connection->session->pEnv,
  connection->pError,
- (dword *)0,
+ (dvoid *)0,
  &null_ind,
  coll->coll));
>>> line 5110
  connection->session->pEnv,
  connection->pError,
  ndx,
- (dword *)0,
+ (dvoid *)0,
  &null_ind,
  coll->coll));
>>> line 5143
  connection->session->pEnv,
  connection->pError,
  ndx,
- (dword *)&dt,
+ (dvoid *)&dt,
  &new_ind,
  coll->coll));
>>> line 5171
  connection->session->pEnv,
  connection->pError,
  ndx,
- (dword *)ocistr,
+ (dvoid *)ocistr,
  &new_ind,
  coll->coll));
>>> line 5210
  connection->session->pEnv,
  connection->pError,
  ndx,
- (dword *)&num,
+ (dvoid *)&num,
  &new_ind,
  coll->coll));

Maybe you have fixed this a long time ago and just should update the documentation to say that it might already work with Oracle 10. You should definitely not apply any of these changes without considering older versions of Oracle (which I didn't feel I had to). Use it if it is of any value to you.

Rest assured that I will never trouble you with another comment again.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-07 14:21 UTC] tony2001@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

That's right, it was already fixed about a half-year ago.
Try latest release.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 13:01:29 2024 UTC