From 9d6e8a56534f28fed694058b606bba120df8db69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Mon, 27 Dec 2021 19:58:34 +0100 Subject: [PATCH 1/7] Update the signature of dba_open() and dba_popen() --- reference/dba/functions/dba-open.xml | 54 +++++++++++++------ reference/dba/functions/dba-popen.xml | 76 ++++++++++++++++++++++----- 2 files changed, 101 insertions(+), 29 deletions(-) diff --git a/reference/dba/functions/dba-open.xml b/reference/dba/functions/dba-open.xml index cdb6c6c2008e..09fece932bde 100644 --- a/reference/dba/functions/dba-open.xml +++ b/reference/dba/functions/dba-open.xml @@ -11,8 +11,9 @@ resourcefalsedba_open stringpath stringmode - stringhandler - stringargs + stringnullhandler&null; + intpermission0644 + intmap_size0 dba_open establishes a database instance for @@ -20,6 +21,7 @@ handler. + &reftitle.parameters; @@ -156,40 +158,57 @@ The name of the handler which shall be used for accessing path. It is passed all optional parameters given to dba_open and - can act on behalf of them. + can act on behalf of them. If handler is &null;, + then either the default handler is invoked, or &false; is returned + along with triggering an E_WARNING. - args + permission - Optional &string; parameters which are passed to the driver. + Optional &integer; parameter which is passed to the driver. It has the same meaning as + the permissions parameter of chmod, + and defaults to 0644. The cdb, cdb_make, flatfile, inifile, qdbm and tcadb drivers - do not support additional parameters. + do not support the permission parameter. The db1, db2, db3, db4, dbm, gdbm, - and ndbm drivers supports a single additional parameter $filemode, - which has the same meaning as the $mode parameter of chmod, - and defaults to 0644. + ndbm, and lmdb drivers support the + permission parameter. + + + + map_size + - The lmdb driver accepts two additional parameters. The first - allows to specify the $filemode (see description above), and the - second to specify the $mapsize, where the value should be a multiple - of the page size of the OS, or zero, to use the default mapsize. The $mapsize + Optional &integer; parameter which is passed to the driver. Its value should be a multiple of the + page size of the OS, or zero, to use the default map size. The map_size parameter is supported as of PHP 7.3.14 and 7.4.2, respectively. + + The cdb, cdb_make, flatfile, + inifile, qdbm, tcadb, + db1, db2, db3, + db4, dbm, gdbm, + and ndbm drivers don't support the map_size parameter. + + + The lmdb driver accepts the map_size parameter. + + &reftitle.returnvalues; @@ -208,10 +227,16 @@ + + 8.1.0 + + handler is now nullable. + + 7.3.14, 7.4.2 - The lmdb driver now supports an additional $mapsize + The lmdb driver now supports an additional map_size parameter. @@ -230,7 +255,6 @@ -