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
Christoph M. Becker
eae69fcf71
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #80817 : dba_popen() may cause segfault during RSHUTDOWN
2021-03-15 18:39:26 +01:00
Christoph M. Becker
f448b0e6dd
Fix #80817 : dba_popen() may cause segfault during RSHUTDOWN
...
We need to close persistent streams with the proper flag.
2021-03-15 18:37:44 +01:00
Máté Kocsis
bf0f6aaf18
Improve class entry generation
...
Related to GH-6701
2021-02-16 13:09:56 +01:00
Nikita Popov
b10416a652
Deprecate passing null to non-nullable arg of internal function
...
This deprecates passing null to non-nullable scale arguments of
internal functions, with the eventual goal of making the behavior
consistent with userland functions, where null is never accepted
for non-nullable arguments.
This change is expected to cause quite a lot of fallout. In most
cases, calling code should be adjusted to avoid passing null. In
some cases, PHP should be adjusted to make some function arguments
nullable. I have already fixed a number of functions before landing
this, but feel free to file a bug if you encounter a function that
doesn't accept null, but probably should. (The rule of thumb for
this to be applicable is that the function must have special behavior
for 0 or "", which is distinct from the natural behavior of the
parameter.)
RFC: https://wiki.php.net/rfc/deprecate_null_to_scalar_internal_arg
Closes GH-6475.
2021-02-11 21:46:13 +01:00
Máté Kocsis
99b08ac281
Implicitly enable function entry generation when class entry generation is enabled
...
Closes GH-6675
2021-02-09 13:37:24 +01:00