php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #792 Compile failure (PHP+Oracle pre8.0.5)
Submitted: 1998-09-27 06:43 UTC Modified: 1999-06-02 03:33 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: nakama at ki dot rim dot or dot jp Assigned:
Status: Closed Package: Oracle related
PHP Version: 3.0.4 OS: Linux2.0.35 glibc2
Private report: No CVE-ID: None
 [1998-09-27 06:43 UTC] nakama at ki dot rim dot or dot jp
1.file not found $ORACLE_HOME/orainst/unix.rgs

  ./configure -> ORACLE_VERSION=7.3

2.undefined function oci8_efree_column

  oci8_free_column topy?

diff -r -c php-3.0.4.org/configure php-3.0.4/configure
*** php-3.0.4.org/configure	Wed Sep 23 05:23:07 1998
--- php-3.0.4/configure	Sun Sep 27 13:05:00 1998
***************
*** 4335,4340 ****
--- 4335,4346 ----
        ORACLE_INCLUDE=-I$ORACLEINST_TOP/rdbms/demo
      fi
  
+     if test -d "$ORACLEINST_TOP/rdbms/public"
+     then
+       # V8
+       ORACLE_INCLUDE="$ORACLE_INCLUDE -I$ORACLEINST_TOP/rdbms/public"
+     fi
+ 
      if test -d "$ORACLEINST_TOP/network/public"
      then
        # V8
***************
*** 4358,4363 ****
--- 4364,4381 ----
    else
      ORACLE_VERSION=7.3
    fi
+ 
+   # Oracle on Linux pre 8.0.5 :-):-)
+   if  test -f "$ORACLEINST_TOP/orainst/install"
+   then
+ 	ORACLE_LINUX=`grep 'Welcome to Oracle on Linux!' \
+ 		 $ORACLEINST_TOP/orainst/install`
+ 	if test "$ORACLE_LINUX"!=""
+ 	then
+ 		ORACLE_VERSION=8.0
+ 	fi
+   fi
+ 
    echo "$ac_t""$ORACLE_VERSION" 1>&6
  
  
diff -r -c php-3.0.4.org/functions/oci8.c php-3.0.4/functions/oci8.c
*** php-3.0.4.org/functions/oci8.c	Tue Sep 15 02:25:44 1998
--- php-3.0.4/functions/oci8.c	Sun Sep 27 13:07:57 1998
***************
*** 622,628 ****
  	statement->columns = emalloc(sizeof(HashTable));
  	if (!statement->columns ||
  		_php3_hash_init(statement->columns, 13, NULL,
! 						(void (*)(void *))oci8_efree_column, 0) == FAILURE) {
  		/* out of memory */
  		return 0;
  	}
--- 622,628 ----
  	statement->columns = emalloc(sizeof(HashTable));
  	if (!statement->columns ||
  		_php3_hash_init(statement->columns, 13, NULL,
! 						(void (*)(void *))oci8_free_column, 0) == FAILURE) {
  		/* out of memory */
  		return 0;
  	}

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-01 16:46 UTC] jim at cvs dot php dot net
Reclassifying as an Oracle bug.
 [1999-06-02 03:33 UTC] thies at cvs dot php dot net
fixed a long time ago.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 01:01:28 2024 UTC