|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
24 + 45 = ?
Subscribe to this entry?

 [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: Fri Sep 17 08:03:36 2021 UTC