php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #36618 sqlite_last_error return 0 when no error occurred
Submitted: 2006-03-05 14:55 UTC Modified: 2006-03-06 21:54 UTC
From: bjori@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bjori@php.net
New email:
PHP Version: OS:

 

 [2006-03-05 14:55 UTC] bjori@php.net
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>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-06 21:54 UTC] nlopess@php.net
applied, thanks.
next time, apply the patch yourself! Its probably faster than opening a bug report.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Nov 19 12:00:02 2025 UTC