svn: /phpdoc/en/trunk/reference/mysqli/ functions/mysqli-report.xml mysqli_driver.xml
| From: | Jakub Vrana | Date: | Tue, 20 Jul 2010 09:43:37 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/mysqli/ functions/mysqli-report.xml mysqli_driver.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-6898@lists.php.net to get a copy of this message | ||
vrana Tue, 20 Jul 2010 09:43:37 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=301418
Log:
Better explanation of mysqli_report
Changed paths:
U phpdoc/en/trunk/reference/mysqli/functions/mysqli-report.xml
U phpdoc/en/trunk/reference/mysqli/mysqli_driver.xml
Modified: phpdoc/en/trunk/reference/mysqli/functions/mysqli-report.xml
===================================================================
--- phpdoc/en/trunk/reference/mysqli/functions/mysqli-report.xml 2010-07-20 09:26:29 UTC (rev
301417)
+++ phpdoc/en/trunk/reference/mysqli/functions/mysqli-report.xml 2010-07-20 09:43:37 UTC (rev
301418)
@@ -48,7 +48,10 @@
</row>
<row>
<entry><constant>MYSQLI_REPORT_STRICT</constant></entry>
- <entry>Report warnings from mysqli function calls</entry>
+ <entry>
+ Throw <classname>mysqli_sql_exception</classname> for errors
+ instead of warnings
+ </entry>
</row>
<row>
<entry><constant>MYSQLI_REPORT_INDEX</constant></entry>
@@ -97,7 +100,7 @@
/* this query should report an error */
$result = $mysqli->query("SELECT Name FROM Nonexistingtable WHERE population >
50000");
-/* this query should report a warning */
+/* this query should report a bad index */
$result = $mysqli->query("SELECT Name FROM City WHERE population > 50000");
$result->close();
@@ -113,6 +116,7 @@
&reftitle.seealso;
<para>
<simplelist>
+ <member><link
linkend="mysqli-driver.props.report-mode">MySQLi_Driver::$report_mode</link></member>
<member><function>mysqli_debug</function></member>
<member><function>mysqli_dump_debug_info</function></member>
</simplelist>
Modified: phpdoc/en/trunk/reference/mysqli/mysqli_driver.xml
===================================================================
--- phpdoc/en/trunk/reference/mysqli/mysqli_driver.xml 2010-07-20 09:26:29 UTC (rev 301417)
+++ phpdoc/en/trunk/reference/mysqli/mysqli_driver.xml 2010-07-20 09:43:37 UTC (rev 301418)
@@ -115,6 +115,7 @@
<constant>MYSQLI_REPORT_STRICT</constant> (throw Exceptions for errors),
<constant>MYSQLI_REPORT_ERROR</constant> (report errors) and
<constant>MYSQLI_REPORT_INDEX</constant> (errors regarding indexes).
+ See also <function>mysqli_report</function>.
</para>
</listitem>
</varlistentry>