mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Fix and clarify parameter description, respectively
Negative values other than -1 have undefined behavior according to <https://sqlite.org/c3ref/create_function.html>. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342156 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
73ccd04e7d
commit
95f1473b20
2 changed files with 5 additions and 4 deletions
|
@ -14,7 +14,7 @@
|
|||
<modifier>public</modifier> <type>bool</type><methodname>PDO::sqliteCreateFunction</methodname>
|
||||
<methodparam><type>string</type><parameter>function_name</parameter></methodparam>
|
||||
<methodparam><type>callable</type><parameter>callback</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>num_args</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>num_args</parameter><initializer>-1</initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
&warn.experimental.func;
|
||||
|
@ -60,8 +60,9 @@
|
|||
<term><parameter>num_args</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Hint to the SQLite parser if the callback function accepts a
|
||||
predetermined number of arguments.
|
||||
The number of arguments that the SQL function takes. If
|
||||
this parameter is <literal>-1</literal>, then the SQL function may take
|
||||
any number of arguments.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
<listitem>
|
||||
<para>
|
||||
The number of arguments that the SQL function takes. If
|
||||
this parameter is negative, then the SQL function may take
|
||||
this parameter is <literal>-1</literal>, then the SQL function may take
|
||||
any number of arguments.
|
||||
</para>
|
||||
</listitem>
|
||||
|
|
Loading…
Reference in a new issue