From:             [EMAIL PROTECTED]
Operating system: 
PHP version:      Irrelevant
PHP Bug Type:     Documentation problem
Bug description:  sqlite_last_error return 0 when no error occurred

Description:
------------
Missing documentation on what sqlite_last_error return when no error
occurred.
Noticed by Marnaq,
http://www.php.net/manual/en/function.sqlite-last-error.php#62614

Tiny patch: http://php.is/bugs/36618/phpdoc.sqlite-last-error.patch.txt

Index: sqlite-last-error.xml
===================================================================
RCS file:
/repository/phpdoc/en/reference/sqlite/functions/sqlite-last-error.xml,v
retrieving revision 1.9
diff -u -r1.9 sqlite-last-error.xml
--- sqlite-last-error.xml       4 Oct 2005 15:11:18 -0000       1.9
+++ sqlite-last-error.xml       5 Mar 2006 13:47:55 -0000
@@ -23,7 +23,8 @@
   </classsynopsis>
   <para>
    Returns the error code from the last operation performed on
-   <parameter>dbhandle</parameter>, the database handle.  A human
readable
+   <parameter>dbhandle</parameter> (the database handle), or 0 when no
errors
+   occurred. A human readable
    description of the error code can be retrieved using
    <function>sqlite_error_string</function>.
   </para>


-- 
Edit bug report at http://bugs.php.net/?id=36618&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=36618&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=36618&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=36618&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=36618&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=36618&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=36618&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=36618&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=36618&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=36618&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=36618&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=36618&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=36618&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=36618&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=36618&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=36618&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=36618&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=36618&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=36618&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=36618&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=36618&r=mysqlcfg

Reply via email to