diff options
author | Marcus Boerger <helly@php.net> | 2002-12-30 17:42:55 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-12-30 17:42:55 +0000 |
commit | aa8e5cdde7817b615dabab41fad79316f470fb3f (patch) | |
tree | 8e7a58603c1637e6e2a6746cb35efdff11f25699 /ext/dba/dba_db4.c | |
parent | 0af3b5a6923063300de0479e81d3f8e9cd1c16ac (diff) | |
download | php-git-aa8e5cdde7817b615dabab41fad79316f470fb3f.tar.gz |
-disallow using db-<n> with libraries of different major versions
-disallow using db-4.1 with patch level < 25
-fix db-4.1
-added undocumented DB_FCNTL_LOCKING flag for version 3 and 4
# wow the sleepycat guys answered *very* fast
Diffstat (limited to 'ext/dba/dba_db4.c')
-rw-r--r-- | ext/dba/dba_db4.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/dba/dba_db4.c b/ext/dba/dba_db4.c index cab8961764..de3eb3441d 100644 --- a/ext/dba/dba_db4.c +++ b/ext/dba/dba_db4.c @@ -81,6 +81,10 @@ DBA_OPEN_FUNC(db4) filemode = Z_LVAL_PP(info->argv[0]); } +#ifdef DB_FCNTL_LOCKING + gmode |= DB_FCNTL_LOCKING; +#endif + if ((err=db_create(&dbp, NULL, 0)) == 0) { dbp->set_errcall(dbp, php_dba_db4_errcall_fcn); if ( |