ID:               29455
 Comment by:       dada dot taiwan at gmail dot com
 Reported By:      dada at bbs dot giga dot net dot tw
 Status:           No Feedback
 Bug Type:         *Compile Issues
 Operating System: FreeBSD
 PHP Version:      5.0.0
 Assigned To:      helly
 New Comment:

db_185.h only provide the compatible interface,
 not the compatible data format.

http://www.csie.nctu.edu.tw/~cdsheen/codings/freebsd-phpdbm-patch.php


Previous Comments:
------------------------------------------------------------------------

[2004-08-30 01:00:05] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2004-08-22 17:59:05] [EMAIL PROTECTED]

Another thing we could do is providing a new subhandler called db1 to
deal with teh db 1.85 format interface. The question is whether that
makes sense and how to distinguish from ndbm interface and libs?

------------------------------------------------------------------------

[2004-08-19 20:34:21] [EMAIL PROTECTED]

The dbm extension didn't care for the data format. Neither do you if
you are using ndm functions which are normally mapped to db2 or db3.
Also dbm is a bad idea because you can only have one single file open
(though we currently miss some check code for that).

To verify which what version you are dealing look for
'DB_VERSION_STRING' in the db.h file or any file it includes.

Maybe we can switch to search fro the db_185.h haeder and use that if
available. This thing also provides a way to open multiple datase
files. Probably this is what you see in your db.h file.

------------------------------------------------------------------------

[2004-08-18 17:23:20] dada at bbs dot giga dot net dot tw

The deprecated DBM extension seems using 'ndbm' in FreeBSD
 (instead of built-in db library)
 for accessing Berkeley DB 1.85 format in BSD system.

1. Deprecated DBM extension use ndbm's dbm_open() in FreeBSD's
/usr/include/ndbm.h
2. my solution use dbopen() in FreeBSD's /usr/include/db.h

Both works!

My codes use the 2nd solution to support db 1.85 format.

Maybe you can barrow the codes from the deprecated DBM extension to
utilize the 1st solution
to support the Berkeley DB 1.85 format in FreeBSD.
This may increase the portability.

~ dada

------------------------------------------------------------------------

[2004-08-05 04:05:21] dada at bbs dot giga dot net dot tw

I just send the modified source to you.

Thanks.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/29455

-- 
Edit this bug report at http://bugs.php.net/?id=29455&edit=1

Reply via email to