php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19341 DBA config.m4 needs searching for db3 files like db2
Submitted: 2002-09-10 11:48 UTC Modified: 2002-09-11 10:06 UTC
From: list at firehawksystems dot com Assigned:
Status: Closed Package: DBM/DBA related
PHP Version: 4.2.3 OS: FreeBSD 4.3, but any unix
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: list at firehawksystems dot com
New email:
PHP Version: OS:

 

 [2002-09-10 11:48 UTC] list at firehawksystems dot com
Here is a patch that adds searching for db3 files like it currently does for db2.

Brian


+++ php-4.2.3/ext/dba/config.m4 Tue Sep 10 08:47:31 2002
--- php-4.2.3.org/ext/dba/config.m4     Mon Sep  9 14:33:18 2002
@@ -152,19 +152,7 @@
 [  --with-db3[=DIR]        Include Berkeley DB3 support],[
   if test "$withval" != "no"; then
     for i in /usr/local /usr /usr/local/BerkeleyDB.3.0 $withval; do
+      if test -f "$i/db3/db.h"; then
+        THIS_PREFIX=$i
+        DB3_EXTRA=db3
+      elif test -f "$i/include/db3/db.h"; then
+        THIS_PREFIX=$i
+        DB3_EXTRA=db3/db.h
+      elif test -f "$i/include/db/db3.h"; then
+        THIS_PREFIX=$i
+        DB3_EXTRA=db/db3.h
+      elif test -f "$i/include/db3.h"; then
+        THIS_PREFIX=$i
+        DB3_EXTRA=db3.h
+      elif test -f "$i/include/db.h" ; then
-      if test -f "$i/include/db.h" ; then
         THIS_PREFIX=$i
         DB3_EXTRA=db.h
       fi

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-10 11:51 UTC] list at firehawksystems dot com
I think that was a bad patch, try this one:

--- php-4.2.3.org/ext/dba/config.m4 Thu Apr 18 05:31:19 2002
+++ php-4.2.3/ext/dba/config.m4 Tue Sep 10 08:43:20 2002
@@ -152,7 +152,19 @@
 [  --with-db3[=DIR]        Include Berkeley DB3 support],[
   if test "$withval" != "no"; then
     for i in /usr/local /usr /usr/local/BerkeleyDB.3.0 $withval; do
-      if test -f "$i/include/db.h" ; then
+      if test -f "$i/db3/db.h"; then
+        THIS_PREFIX=$i
+        DB3_EXTRA=db3
+      elif test -f "$i/include/db3/db.h"; then
+        THIS_PREFIX=$i
+        DB3_EXTRA=db3/db.h
+      elif test -f "$i/include/db/db3.h"; then
+        THIS_PREFIX=$i
+        DB3_EXTRA=db/db3.h
+      elif test -f "$i/include/db3.h"; then
+        THIS_PREFIX=$i
+        DB3_EXTRA=db3.h
+      elif test -f "$i/include/db.h" ; then
         THIS_PREFIX=$i
         DB3_EXTRA=db.h
       fi
 [2002-09-11 10:06 UTC] kalowsky@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

Thanks for the patch
 [2012-08-16 09:23 UTC] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=327145
Log: Both offsetSet and offsetGet have a note stating they are a method alias, but this one did not. Adding for completeness.

--
Provided by anonymous #19341 (leight@gmail.com)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 10:01:29 2024 UTC