George Peter Banyard
04f6fe4b25
Ammend DBA error message to use standard messaging
2022-07-26 00:25:39 +01:00
George Peter Banyard
3c372901bd
Add support to pass driver flags to DBA handlers
...
Currently only LMDB with DBA_LMDB_USE_SUB_DIR/DBA_LMDB_NO_SUB_DIR are supported
2022-07-23 18:38:27 +01:00
George Peter Banyard
79d831ff9f
Pass MDB_RDONLY to the LMDB environment for readonly DBs
2022-07-23 18:38:27 +01:00
George Peter Banyard
0887a1d7ab
Remove personalisation from write on readonly db DBA error message
2022-07-23 18:38:27 +01:00
George Peter Banyard
c8ba00f627
Add comment in GDBM informing to what param the 0 org corresponds to
2022-07-23 18:38:27 +01:00
George Peter Banyard
cd640778f7
[skip ci] Add comment about LMDB env_close function call
2022-07-21 14:48:25 +01:00
George Peter Banyard
d0542a6b5c
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Update NEWS
Fix memory leak in LMDB driver
2022-07-21 14:10:01 +01:00
George Peter Banyard
c7a0439d60
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix memory leak in LMDB driver
2022-07-21 14:08:40 +01:00
George Peter Banyard
5b83b3a933
Fix memory leak in LMDB driver
2022-07-21 14:05:48 +01:00
Derick Rethans
d8ebfdc506
Merge branch 'PHP-8.0' into PHP-8.1
2022-07-04 10:50:32 +01:00
George Peter Banyard
1d0c287b90
Abort LMDB transaction whe trying to delete non-existing key
2022-07-01 17:28:36 +01:00
George Peter Banyard
8fce70ae7b
Abort LMDB transaction whe trying to delete non-existing key
2022-07-01 17:26:27 +01:00
Yurun
5cf2659fa5
Replace the use of ZVAL_BOOL() with ZVAL_TRUE() or ZVAL_FALSE() where the value is fixed ( #8815 )
2022-06-20 13:34:44 +01:00
George Peter Banyard
738adce79f
Fix [-Wundef] warnings in DBA extension
2022-04-01 14:38:44 +01:00
George Peter Banyard
d71d0cf0bb
Use zend_string for DBA first/next key handlers
2021-11-11 11:12:41 +00:00
George Peter Banyard
96ff88ec38
Use zend_string for DBA delete handler
2021-11-11 11:12:41 +00:00
George Peter Banyard
cd98e46583
Use zend_string for DBA exist handler
2021-11-11 11:12:41 +00:00
George Peter Banyard
0eb0f64455
Use zend_string for DBA update handler
2021-11-11 11:12:41 +00:00
George Peter Banyard
f8e15f1ed6
Use zend_string for DBA fetch handler
2021-11-11 11:12:41 +00:00
George Peter Banyard
c42336b8b8
Drop dba_lock.name element
...
This is unused
2021-11-11 11:12:41 +00:00
Máté Kocsis
fdf63bfef3
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Add more specific array return type hints for various extensions - part 1
2021-11-07 08:48:49 +01:00
Máté Kocsis
d02b9b953d
Add more specific array return type hints for various extensions - part 1
...
ext/bz2, ext/calendar, ext/dba, ext/enchant
Closes GH-7432
2021-11-07 08:46:25 +01:00
George Peter Banyard
7db32add9b
Refactor dba_(p)open() to be more sensible ( #7610 )
...
Actually use ZPP
Throw ValueErrors for invalid values
Use dedicated struc members for file permission and map size instead of a zval stack
2021-11-06 23:09:40 +00:00
George Peter Banyard
a6cc76eeb8
Remove XFAIL
...
This was fixed in PHP 7 according to https://bugs.php.net/bug.php?id=61390 (which the linked commit points to)
2021-11-06 20:50:07 +00:00
George Peter Banyard
8ca7220bc9
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix Bug #81588 TokyoCabinet driver leaks memory
2021-11-03 15:02:12 +00:00
George Peter Banyard
5a3774cac5
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix Bug #81588 TokyoCabinet driver leaks memory
2021-11-03 15:01:56 +00:00
George Peter Banyard
84524afb9e
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix Bug #81588 TokyoCabinet driver leaks memory
2021-11-03 15:01:41 +00:00
George Peter Banyard
9f77373b4e
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix Bug #81588 TokyoCabinet driver leaks memory
2021-11-03 14:58:11 +00:00
George Peter Banyard
96dd310c54
Fix Bug #81588 TokyoCabinet driver leaks memory
2021-11-03 14:57:47 +00:00
George Peter Banyard
927cdd0a39
Inline "helper" macros
...
They just make refactoring harder
2021-10-25 22:49:37 +01:00
George Peter Banyard
1086b22608
Use zend_result as return value for DBA handler
2021-10-25 22:49:37 +01:00
George Peter Banyard
8db5e70866
DBA should not convert elements in-place if the key param is an array
...
Also check that the value can actually be converted to string
2021-10-24 22:41:22 +01:00
George Peter Banyard
b50dc1e3a6
Fix DBA on MacOS ( #7611 )
...
The name zend_string* must be copied instead of returned directly in case the group part of the array is empty.
2021-10-23 20:53:11 +01:00
George Peter Banyard
e56c506020
Refactor DBA
...
Use proper ZPP union types
Use standard function signature semantics for dba_fetch()
Re-ordering of checks
2021-10-23 12:04:23 +01:00
George Peter Banyard
e21d02a62a
Drop confusing ac local variable for ZEND_NUM_ARGS()
2021-10-23 10:30:34 +01:00
George Peter Banyard
c6862d0ed5
Inline DBA_GET2 macro
...
It was used only twice
2021-10-23 10:30:34 +01:00
George Peter Banyard
29ef6523dd
Inline DBA_ID_PARS macro
...
It is used only 3 times and provides variable declarations which one shouldn't need to grep to see what is declared
2021-10-23 10:30:14 +01:00
George Peter Banyard
84e17d8f90
Inline DBA_GET2_3 macro
...
It is only used once
2021-10-23 10:18:26 +01:00
George Peter Banyard
b8327cff0b
Inline DBA_ID_GET2(_3) Macro
2021-10-23 10:13:57 +01:00
Nikita Popov
218fd03532
Fix some more CLEANUP sections
2021-09-03 14:10:40 +02:00
Patrick Allaert
aff365871a
Fixed some spaces used instead of tabs
2021-06-29 11:30:26 +02:00
Nikita Popov
b5a14e6c04
Port skipif.inc files to EXTENSIONS
2021-06-11 16:27:50 +02:00
Nikita Popov
7485978339
Migrate SKIPIF -> EXTENSIONS ( #7138 )
...
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00
Christoph M. Becker
2454e3b9a5
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Speed up ext/dba/tests/bug78808.phpt
2021-05-28 23:25:29 +02:00
Christoph M. Becker
af146a42ff
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Speed up ext/dba/tests/bug78808.phpt
2021-05-28 23:24:55 +02:00
Christoph M. Becker
c11b52de95
Speed up ext/dba/tests/bug78808.phpt
...
This tests takes about 2 minutes on AppVeyor CI, what is super slow.
The problem is that we're doing 50,000 inserts of small keys and values
instead of only few inserts with large values, what basically has the
same effect regarding the mmap size.
Closes GH-7073.
2021-05-28 23:24:18 +02:00
George Peter Banyard
c40231afbf
Mark various functions with void arguments.
...
This fixes a bunch of [-Wstrict-prototypes] warning,
because in C func() and func(void) have different semantics.
2021-05-12 14:55:53 +01:00
KsaR
01b3fc03c3
Update http->https in license ( #6945 )
...
1. Update: http://www.php.net/license/3_01.txt to https, as there is anyway server header "Location:" to https.
2. Update few license 3.0 to 3.01 as 3.0 states "php 5.1.1, 4.1.1, and earlier".
3. In some license comments is "at through the world-wide-web" while most is without "at", so deleted.
4. fixed indentation in some files before |
2021-05-06 12:16:35 +02:00
George Peter Banyard
5caaf40b43
Introduce pseudo-keyword ZEND_FALLTHROUGH
...
And use it instead of comments
2021-04-07 00:46:29 +01:00
Christoph M. Becker
0b2bb98af9
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Fix #80817 : dba_popen() may cause segfault during RSHUTDOWN
2021-03-15 18:40:30 +01:00