|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #193 Oracle Stuff didn?t work on Digital Unix
Submitted: 1998-03-24 10:43 UTC Modified: 1998-07-02 12:17 UTC
From: mauro at aguia dot cpd dot telebrasilia dot gov dot br Assigned:
Status: Closed Package: Oracle related
PHP Version: 3.0 Release Cand OS: Digital Unix 4.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: mauro at aguia dot cpd dot telebrasilia dot gov dot br
New email:
PHP Version: OS:


 [1998-03-24 10:43 UTC] mauro at aguia dot cpd dot telebrasilia dot gov dot br
This problem is not really a bug, but can be generating some problems on
sites that uses Oracle Databases running on Digital and some other machines.

I?m using Oracle V. 7.3.2 on Digital Unix.  Compiling PHP on this machine is ok, but 
the access to Oracle database doesn?t work well. After several hours, I?ve discovered
that the oracle?s .h files needs some defines in order to work ok.

The OCI demo Makefile makes 3 definitions for Digital Unix/OSF1:
Looking at ora*.h files,  using:

$ grep define *.h |grep if|more

oratypes.h:#if defined(SYSV_386) || defined(SUN_OS)
oratypes.h:#if defined(mips)                     
oratypes.h:#if defined(A_OSF)
oratypes.h:#if defined(PMAX) && defined(__STDC__)
oratypes.h:#  if defined(SEQ_PSX) && defined(__STDC__)
oratypes.h:#      if defined(__STDC__)
oratypes.h:# if defined(A_OSF)

I?ve noticed that, for  OSF,  I only need to define A_OSF,
but there are some other defines that can be necessary in order to compile on
other operating systems. So, I included the line
on php?s  Makefile and the problem was resolved.

I have also noticed that, on ocidem.h, there?s some machine-specific code:

#if (defined(__osf__) && defined(__alpha)) || defined(CRAY) || defined(KSR)
# define HDA_SIZE 512
# define HDA_SIZE 256

I believe PHP?s and aclocal.m4 must test for this OS?s in order to include
this diretives.

I  don?t tested to change PHP code in order to implement this yet., but maybe it can 
resolve another bug I?m still having...

When I reload a page whose is makin a SELECT from my database,  sometimes 
appears trash on the information returned from DB.

Mauro Chehab.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-07-02 12:17 UTC] ssb
A fix is applied to CVS.  I don't have access to a test
site myself, could you get the latest CVS version and see
if it compiles and works cleanly?

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Sep 27 23:03:36 2021 UTC