[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/reference/sqlite3/sqlite3stmt/_bindparam.xml_bindvalue.xml
From: Christoph_Michael_Becker <cmb () php ! net>
Date: 2018-07-26 15:06:32
Message-ID: svn-cmb-1532617592-345397-87594076 () svn ! php ! net
[Download RAW message or body]
cmb Thu, 26 Jul 2018 15:06:32 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=345397
Log:
Clarify default value of $type parameter
We don't add a changelog entry since the behavioral change
as of PHP 7.0.7 has to be considered a bug fix, but we feel
obliged to documented the former behavior nonetheless.
Changed paths:
U phpdoc/en/trunk/reference/sqlite3/sqlite3stmt/bindparam.xml
U phpdoc/en/trunk/reference/sqlite3/sqlite3stmt/bindvalue.xml
Modified: phpdoc/en/trunk/reference/sqlite3/sqlite3stmt/bindparam.xml
===================================================================
--- phpdoc/en/trunk/reference/sqlite3/sqlite3stmt/bindparam.xml 2018-07-26 14:38:26 UTC (rev 345396)
+++ phpdoc/en/trunk/reference/sqlite3/sqlite3stmt/bindparam.xml 2018-07-26 15:06:32 UTC (rev 345397)
@@ -79,6 +79,22 @@
</listitem>
</itemizedlist>
</para>
+ <para>
+ As of PHP 7.0.7, if <parameter>type</parameter> is omitted, it is automatically
+ detected from the type of the <parameter>param</parameter>: <type>boolean</type>
+ and <type>integer</type> are treated as <constant>SQLITE3_INTEGER</constant>,
+ <type>float</type> as <constant>SQLITE3_FLOAT</constant>, <type>null</type>
+ as <constant>SQLITE3_NULL</constant> and all others as <constant>SQLITE3_TEXT</constant>.
+ Formerly, if <parameter>type</parameter> has been omitted, it has defaulted
+ to <constant>SQLITE3_TEXT</constant>.
+ </para>
+ <note>
+ <para>
+ If <parameter>param</parameter> is &null;, it is always treated as
+ <constant>SQLITE3_NULL</constant>, regardless of the given
+ <parameter>type</parameter>.
+ </para>
+ </note>
</listitem>
</varlistentry>
</variablelist>
Modified: phpdoc/en/trunk/reference/sqlite3/sqlite3stmt/bindvalue.xml
===================================================================
--- phpdoc/en/trunk/reference/sqlite3/sqlite3stmt/bindvalue.xml 2018-07-26 14:38:26 UTC (rev 345396)
+++ phpdoc/en/trunk/reference/sqlite3/sqlite3stmt/bindvalue.xml 2018-07-26 15:06:32 UTC (rev 345397)
@@ -79,6 +79,22 @@
</listitem>
</itemizedlist>
</para>
+ <para>
+ As of PHP 7.0.7, if <parameter>type</parameter> is omitted, it is automatically
+ detected from the type of the <parameter>value</parameter>: <type>boolean</type>
+ and <type>integer</type> are treated as <constant>SQLITE3_INTEGER</constant>,
+ <type>float</type> as <constant>SQLITE3_FLOAT</constant>, <type>null</type>
+ as <constant>SQLITE3_NULL</constant> and all others as <constant>SQLITE3_TEXT</constant>.
+ Formerly, if <parameter>type</parameter> has been omitted, it has defaulted
+ to <constant>SQLITE3_TEXT</constant>.
+ </para>
+ <note>
+ <para>
+ If <parameter>value</parameter> is &null;, it is always treated as
+ <constant>SQLITE3_NULL</constant>, regardless of the given
+ <parameter>type</parameter>.
+ </para>
+ </note>
</listitem>
</varlistentry>
</variablelist>
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic