Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
2004-01-08 08:18:22 +00:00
Marcus Boerger
c69fb4133d
dded qdbm handler ( http://qdbm.sourceforge.net ).
2003-12-18 20:25:21 +00:00
Marcus Boerger
0283b50316
Centralize ability to drop APPEND flag. This probably fixes some ini file
...
issues.
2003-12-18 20:14:15 +00:00
Marcus Boerger
43d06f50e0
- Fix Bug #26304 Unexpected data loss when opening dba file
...
- Correct handling for flatfile handler
2003-12-14 22:08:18 +00:00
Marcus Boerger
70ca95aa0e
Revert: need a PHP4.3 solution.
...
# This solution cannot be backported to PHP 4.3 -- damn!
2003-12-13 15:00:04 +00:00
Marcus Boerger
d1a6deb785
- Fixed bug #26304 (Unexpected data loss when opening dba file).
2003-12-13 14:50:06 +00:00
Marcus Boerger
2bed6c2b8a
Proto fixes (Friedhelm Betz <holliwell|gmx.net>)
2003-11-13 19:08:41 +00:00
Marcus Boerger
4d752bd78e
Pass eof
2003-11-13 07:53:15 +00:00
Marcus Boerger
daaef88047
Add helper function that splits inifile keys into an array which again
...
can be used in dba_fetch calls.
2003-11-12 21:43:03 +00:00
Ilia Alshanetsky
4f2e9bbc45
Fixed format error.
2003-08-28 17:56:41 +00:00
Marcus Boerger
ddf4ad5744
Fix warning
2003-08-17 17:14:11 +00:00
Ilia Alshanetsky
4d98e9ec97
Finalize the closing process of persistent streams. The current
...
behavior/API is as follows:
1) To close a persistent use php_stream_pclose(), it will close the stream
and remove it from the persistent list.
2) Inside PHP code only explicit fclose() will close persistent streams,
all other actions such as unset() or assigning a value to stream handle
will not.
3) Regular streams can still be closed by either fclose(), unset() or an
assignment of a value to the stream handler.
2003-07-29 18:26:34 +00:00
Marcus Boerger
7f1cf60331
Remove bogus comment (noticed by Zak)
2003-07-16 22:55:02 +00:00
Marcus Boerger
a332df50fb
Don't copy the filename when it is not needed
2003-06-21 18:43:25 +00:00
Marcus Boerger
7eb9fc251a
Store the absolute path of the database file and use that in the external library
2003-06-21 18:17:20 +00:00
Edin Kadribasic
5a3c09c440
Fixed win32 build
2003-06-16 09:11:31 +00:00
Andrey Hristov
ab5b9b91d3
proto fixes
2003-06-13 14:59:01 +00:00
Marcus Boerger
48cc4a7be6
Bugfix #2397 : dba_open locking error with db3
2003-06-12 19:53:40 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
Marcus Boerger
1778caad0c
Fix protos
2003-05-19 22:52:27 +00:00
Marcus Boerger
8a5ba51ac8
MFB: safe_emalloc()
2003-04-24 20:54:43 +00:00
Marcus Boerger
268ffda27d
Reenable dba_popen()
2003-04-13 19:50:28 +00:00
Marcus Boerger
f14a65c7b9
CS
2003-03-20 19:54:22 +00:00
Marcus Boerger
f5a7a1c094
Use stream locking support
...
# needs more testing
2003-03-04 23:45:48 +00:00
Marcus Boerger
238abf8c7f
fix dba by fixing key_len retrieval
2003-03-04 19:56:35 +00:00
Marcus Boerger
d737741329
allow keys as array(group, name) for handler inifile
2003-02-26 22:07:50 +00:00
Marcus Boerger
8ab1924ca3
@Added dba handler inifiles to support ini files. (Marcus)
2003-02-22 17:20:06 +00:00
Marcus Boerger
037986db20
Fix proto
2003-01-31 19:12:23 +00:00
Ilia Alshanetsky
a7b91019e9
Removed pointless memory allocation checks.
2003-01-18 19:49:28 +00:00
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
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
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
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
e7d20a0422
Make magic_quotes_runtime work bidirectional for dba
2002-11-22 15:47:48 +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
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
b8f3b83511
Emit a warning when open mode modifier t is used wrong.
2002-11-10 23:07:35 +00:00