Edin Kadribasic
59b37a5ce4
Fixed win32 build.
2003-01-06 01:08:59 +00:00
Sebastian Bergmann
b506f5c8f8
Bump year.
2002-12-31 16:08:15 +00:00
Marcus Boerger
67f0a6f6c0
testing default handler should be a separate test
2002-12-30 19:20:11 +00:00
Marcus Boerger
aa8e5cdde7
-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
2002-12-30 17:42:55 +00:00
Marcus Boerger
32dda8b0cb
ws
2002-12-30 13:09:03 +00:00
Marcus Boerger
4d2f7207c0
Add info function to handlers and return handler info when dba_handlers is
...
called with optional parameter full_info set true.
2002-12-30 13:07:30 +00:00
Marcus Boerger
a213c71735
2nd part of the patch
2002-12-30 11:43:18 +00:00
Marcus Boerger
4b9e8fc899
-better parameter names for DBA_HND macros
...
-remove unnecessary notice
2002-12-30 11:32:37 +00:00
Derick Rethans
e76d0043da
- Align mssql comment and clarify DBA handler selection
2002-12-30 08:55:21 +00:00
Marcus Boerger
c69d034a87
Added support for db3/db4 error handling/information
2002-12-29 15:32:38 +00:00
Marcus Boerger
9b22813c4d
Add a default handler that makes handler parameter to open functions
...
optional.
@Improved dba extension (Marcus)
@-Made handler parameter of dba_(p)open() optional.
@-Added php.ini option 'dba.default_handler' to specify a default handler.
2002-12-29 15:31:00 +00:00
Ilia Alshanetsky
22a2636d9d
Made DBA tests not dependant on error reporting settings.
2002-12-27 04:46:40 +00:00
Marcus Boerger
4041d4faed
Add missing test for db4 handler
2002-12-26 19:55:06 +00:00
Andrei Zmievski
ddea2a190f
Alias dba_popen() to dba_open() until persistent STDIO streams are
...
implemented.
2002-12-21 01:09:27 +00:00
Marcus Boerger
efd314e767
-Fix memory handling of persistent dba connections.
...
-Update tests.
# cdb and flatfile still FAIL for dba_popen since the known streams problem
2002-12-20 17:47:58 +00:00
Andrei Zmievski
c45f76112f
At least this problem exposed some leaks..
2002-12-20 16:45:34 +00:00
Marcus Boerger
e0c983a013
Warnings and Notices when lock modifiers for dba_(p)open are used wrong.
...
This finally closes bug #20828 (and i hope it must not be reopened)
2002-12-11 10:37:38 +00:00
Marcus Boerger
a6e9674bfd
add missing comment
2002-12-10 22:51:09 +00:00
Marcus Boerger
b94e0d9eac
LOCK_EX is not allowed in read mode -> try using existing .lck file in read
...
only mode only when in read mode.
2002-12-10 22:49:33 +00:00
Marcus Boerger
17117063ce
-remove second attempt to close lock file
...
-default to lock on db file instead on .lck file.
-try to use existing .lck file and only create it on failure (allows ro access)
2002-12-10 22:02:52 +00:00
Marcus Boerger
ba534ac7c8
Added open modifier '-' to skip/ignore locking. See bug #20828 , #20858
2002-12-09 17:54:13 +00:00
Marcus Boerger
579e3ca96b
Add Berkeley db4 support
2002-11-26 12:05:59 +00:00
Marcus Boerger
197fd585bd
-Disallow combining db2 with db3 which are conflicting.
...
-Stop searching for headers and libraries when found.
-Check version for Berkeley DB library headers.
2002-11-26 12:00:25 +00:00
Marcus Boerger
1827a58de0
Allow db4.0 & db4.1 here. Patch by Ralf Engelschall (rse@engelschall.com)
2002-11-23 21:11:12 +00:00
Marcus Boerger
e7d20a0422
Make magic_quotes_runtime work bidirectional for dba
2002-11-22 15:47:48 +00:00
Edin Kadribasic
ff55850562
No need to declare functions used internally by DBA as PHPAPI. This
...
fixes windows build.
2002-11-19 01:06:42 +00:00
Marcus Boerger
dbf8593b5b
When --enable-dba is used then include builtin modules unless --without-xxx
...
is not used.
2002-11-15 21:28:42 +00:00
Marcus Boerger
93769053cc
Use flatfile if available.
...
# This way we are using the internal library which we know about most.
2002-11-15 16:11:51 +00:00
Marcus Boerger
7d03dc004e
Show which handler was used in the test
2002-11-15 15:58:09 +00:00
Marcus Boerger
dbb95f338e
file() is affected by magic_quotes_runtime
2002-11-14 21:15:31 +00:00
Marcus Boerger
a14bc7685d
Add magic_quotes_runtime support
2002-11-14 21:09:41 +00:00
Marcus Boerger
5ec9375760
Fix locking behaviour: On some systems read during write is permitted but
...
most libraries are not capable of that. GDBM is system dependant so there
we only test that we do not deadlock.
2002-11-14 14:32:39 +00:00
Marcus Boerger
244d5d1c11
must be unsigned
...
# maybe i will change this to size_t for 64bit systems but i do not have the
# time now and i have problems building php on a sun.
2002-11-13 16:30:50 +00:00
Marcus Boerger
4dd5fc67b7
-use size_t
...
-recheckin header as unix file
2002-11-13 16:28:44 +00:00
Edin Kadribasic
ae51b7f4db
Allow use of Berkeley db version 3.1 as found on many RedHat systems.
2002-11-13 13:12:26 +00:00
Edin Kadribasic
af436aa873
Added support for bundled flatfile, cdb and cdb_make handlers
...
to win32 build of the dba extension.
2002-11-13 12:12:44 +00:00
Marcus Boerger
759e4b10e8
Use php_flock instead of flock
2002-11-11 20:53:41 +00:00
Marcus Boerger
c4e57b182e
-fix file open mode when modifier 'd' is used
...
#Add my name to authors
2002-11-11 12:04:12 +00:00
Marcus Boerger
dcc7fc16b6
-Precondiftion: no open files
...
-do not show warning from dba_open call for read during write
# Interesting is that on some systems read during write is permitted...
# I will change the tests as soon as i find a way to have this equal on all
# systems
2002-11-11 12:00:58 +00:00
Marcus Boerger
1cb7dc2166
Add missing flush
2002-11-11 11:57:25 +00:00
Marcus Boerger
b8f3b83511
Emit a warning when open mode modifier t is used wrong.
2002-11-10 23:07:35 +00:00
Marcus Boerger
4f636c6b3b
Add $lock_flag which allows to change lock behaviour for both 'l' and 'd'
...
Remember gdbm has its own locking so 't' does not work here - maybe a
warning is needed for that, too.
2002-11-10 22:56:29 +00:00
Marcus Boerger
89b586d415
Use 'l' to open database file with locking on .lck file.
2002-11-10 22:07:17 +00:00
Marcus Boerger
705a4e251c
-Centralise open stream for builtin modules that use streams
...
-If locks work on database file then only one stream open call is used
2002-11-10 17:58:46 +00:00
Marcus Boerger
224e530ee1
finish work on locking
...
-all but gdbm do internal locking now since only gdbm has internal locking
-you can force locking on database or lck file (with gdbm this makes no
sense so a notice is generated)
2002-11-10 16:03:17 +00:00
Marcus Boerger
95018fc5c0
-lock support moved from dba_flatfile.c to dba.c
...
-flatfile, cdb, cdb_make use locking now
#locking is blocking per default use 'rt', 'wt', ct' or 'nt' for non blocking alias
#test access to a database file.
#locking uses flock() which will be emulated or warned if that is not eally
#possible in ext/standard/flock_compat.c
2002-11-08 01:03:53 +00:00
Marcus Boerger
1a4c1eb8a9
not needed anywhere here
2002-11-07 23:09:41 +00:00
Marcus Boerger
39876b881b
-rename anything to flatfile_xxx/FLATFILE_xxx
...
-fix update function
-add warnings for update function
2002-11-07 23:03:16 +00:00
Marcus Boerger
2a2a41b5f2
add test to see if insert fails when key already exists
2002-11-07 14:18:42 +00:00
Marcus Boerger
927033c616
remove debug output and use php_error_docref instead
2002-11-07 13:00:37 +00:00