|
11 | 11 | <type class="union"><type>resource</type><type>false</type></type><methodname>dba_popen</methodname>
|
12 | 12 | <methodparam><type>string</type><parameter>path</parameter></methodparam>
|
13 | 13 | <methodparam><type>string</type><parameter>mode</parameter></methodparam>
|
14 |
| - <methodparam choice="opt"><type>string</type><parameter>handler</parameter></methodparam> |
15 |
| - <methodparam rep="repeat"><type>mixed</type><parameter>args</parameter></methodparam> |
| 14 | + <methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>handler</parameter><initializer>&null;</initializer></methodparam> |
| 15 | + <methodparam choice="opt"><type>int</type><parameter>permission</parameter><initializer>0644</initializer></methodparam> |
| 16 | + <methodparam choice="opt"><type>int</type><parameter>map_size</parameter><initializer>0</initializer></methodparam> |
16 | 17 | </methodsynopsis>
|
17 | 18 | <para>
|
18 | 19 | <function>dba_popen</function> establishes a persistent database instance
|
19 | 20 | for <parameter>path</parameter> with <parameter>mode</parameter> using
|
20 | 21 | <parameter>handler</parameter>.
|
21 | 22 | </para>
|
22 | 23 | </refsect1>
|
| 24 | + |
23 | 25 | <refsect1 role="parameters">
|
24 | 26 | &reftitle.parameters;
|
25 | 27 | <para>
|
|
50 | 52 | The name of the <link linkend="dba.requirements">handler</link> which
|
51 | 53 | shall be used for accessing <parameter>path</parameter>. It is passed
|
52 | 54 | all optional parameters given to <function>dba_popen</function> and
|
53 |
| - can act on behalf of them. |
| 55 | + can act on behalf of them. If <parameter>handler</parameter> is &null;, |
| 56 | + then either the default handler is invoked, or &false; is returned |
| 57 | + along with triggering an <literal>E_WARNING</literal>. |
54 | 58 | </para>
|
55 | 59 | </listitem>
|
56 | 60 | </varlistentry>
|
57 | 61 | <varlistentry>
|
58 |
| - <term><parameter>args</parameter></term> |
| 62 | + <term><parameter>permission</parameter></term> |
59 | 63 | <listitem>
|
60 | 64 | <para>
|
61 |
| - Optional &string; parameters which are passed to the driver. |
| 65 | + Optional &integer; parameter which is passed to the driver. It has the same meaning as |
| 66 | + the <parameter>permissions</parameter> parameter of <function>chmod</function>, |
| 67 | + and defaults to <literal>0644</literal>. |
62 | 68 | </para>
|
63 | 69 | <para>
|
64 | 70 | The <literal>cdb</literal>, <literal>cdb_make</literal>, <literal>flatfile</literal>,
|
65 | 71 | <literal>inifile</literal>, <literal>qdbm</literal> and <literal>tcadb</literal> drivers
|
66 |
| - do not support additional parameters. |
| 72 | + do not support the <parameter>permission</parameter> parameter. |
67 | 73 | </para>
|
68 | 74 | <para>
|
69 | 75 | The <literal>db1</literal>, <literal>db2</literal>, <literal>db3</literal>,
|
70 | 76 | <literal>db4</literal>, <literal>dbm</literal>, <literal>gdbm</literal>,
|
71 |
| - and <literal>ndbm</literal> drivers supports a single additional parameter <literal>$filemode</literal>, |
72 |
| - which has the same meaning as the <literal>$mode</literal> parameter of <function>chmod</function>, |
73 |
| - and defaults to <literal>0644</literal>. |
| 77 | + <literal>ndbm</literal>, and <literal>lmdb</literal> drivers support the |
| 78 | + <parameter>permission</parameter> parameter. |
74 | 79 | </para>
|
| 80 | + </listitem> |
| 81 | + </varlistentry> |
| 82 | + <varlistentry> |
| 83 | + <term><parameter>map_size</parameter></term> |
| 84 | + <listitem> |
75 | 85 | <para>
|
76 |
| - The <literal>lmdb</literal> driver accepts two additional parameters. The first |
77 |
| - allows to specify the <literal>$filemode</literal> (see description above), and the |
78 |
| - second to specify the <literal>$mapsize</literal>, where the value should be a multiple |
79 |
| - of the page size of the OS, or zero, to use the default mapsize. The <literal>$mapsize</literal> |
| 86 | + Optional &integer; parameter which is passed to the driver. Its value should be a multiple of the |
| 87 | + page size of the OS, or zero, to use the default mapsize. The <parameter>map_size</parameter> |
80 | 88 | parameter is supported as of PHP 7.3.14 and 7.4.2, respectively.
|
81 | 89 | </para>
|
| 90 | + <para> |
| 91 | + The <literal>cdb</literal>, <literal>cdb_make</literal>, <literal>flatfile</literal>, |
| 92 | + <literal>inifile</literal>, <literal>qdbm</literal>, <literal>tcadb</literal>, |
| 93 | + <literal>db1</literal>, <literal>db2</literal>, <literal>db3</literal>, |
| 94 | + <literal>db4</literal>, <literal>dbm</literal>, <literal>gdbm</literal>, |
| 95 | + and <literal>ndbm</literal> drivers don't support the <parameter>map_size</parameter> parameter. |
| 96 | + </para> |
| 97 | + <para> |
| 98 | + The <literal>lmdb</literal> driver accepts the <parameter>map_size</parameter> parameter. |
| 99 | + </para> |
82 | 100 | </listitem>
|
83 | 101 | </varlistentry>
|
84 | 102 | </variablelist>
|
85 | 103 | </para>
|
86 | 104 | </refsect1>
|
| 105 | + |
87 | 106 | <refsect1 role="returnvalues">
|
88 | 107 | &reftitle.returnvalues;
|
89 | 108 | <para>
|
90 | 109 | Returns a positive handle on success&return.falseforfailure;.
|
91 | 110 | </para>
|
92 | 111 | </refsect1>
|
| 112 | + |
| 113 | + <refsect1 role="changelog"> |
| 114 | + &reftitle.changelog; |
| 115 | + <informaltable> |
| 116 | + <tgroup cols="2"> |
| 117 | + <thead> |
| 118 | + <row> |
| 119 | + <entry>&Version;</entry> |
| 120 | + <entry>&Description;</entry> |
| 121 | + </row> |
| 122 | + </thead> |
| 123 | + <tbody> |
| 124 | + <row> |
| 125 | + <entry>8.1.0</entry> |
| 126 | + <entry> |
| 127 | + <parameter>handler</parameter> is now nullable. |
| 128 | + </entry> |
| 129 | + </row> |
| 130 | + <row> |
| 131 | + <entry>7.3.14, 7.4.2</entry> |
| 132 | + <entry> |
| 133 | + The <literal>lmdb</literal> driver now supports an additional <parameter>map_size</parameter> |
| 134 | + parameter. |
| 135 | + </entry> |
| 136 | + </row> |
| 137 | + </tbody> |
| 138 | + </tgroup> |
| 139 | + </informaltable> |
| 140 | + </refsect1> |
| 141 | + |
93 | 142 | <refsect1 role="seealso">
|
94 | 143 | &reftitle.seealso;
|
95 | 144 | <para>
|
|
100 | 149 | </para>
|
101 | 150 | </refsect1>
|
102 | 151 | </refentry>
|
103 |
| - |
104 | 152 | <!-- Keep this comment at the end of the file
|
105 | 153 | Local variables:
|
106 | 154 | mode: sgml
|
|
0 commit comments