Edit report at http://bugs.php.net/bug.php?id=54692&edit=1

 ID:                 54692
 Updated by:         ahar...@php.net
 Reported by:        ostico at gmail dot com
 Summary:            SQLite3::open() Return Value
-Status:             Assigned
+Status:             Closed
 Type:               Bug
 Package:            SQLite related
 Operating System:   Ubuntu Server
 PHP Version:        Irrelevant
 Assigned To:        aharvey
 Block user comment: N
 Private report:     N

 New Comment:

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Documentation and source updated.


Previous Comments:
------------------------------------------------------------------------
[2011-05-10 10:14:57] ahar...@php.net

Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=310877
Log: Fix bug #54692 (SQLite3::open() Return Value) by correcting the
SQLite3::open()
prototype.

------------------------------------------------------------------------
[2011-05-10 10:10:54] ahar...@php.net

Looks like the prototype comments are wrong in the actual source, too.

------------------------------------------------------------------------
[2011-05-10 08:51:06] scott...@php.net

documentation is wrong, it returns void always. Exception on error

------------------------------------------------------------------------
[2011-05-08 23:14:13] ostico at gmail dot com

Description:
------------
As the Php Reference said:



SQLite3::open



Returns TRUE on success, FALSE on failure to open the database.



But this IS NOT TRUE.



It Returns NULL.

Test script:
---------------
class testSQLite3 extends SQLite3{

     

    public function __construct(){

        var_dump( $this->open('test.sqlite3') );

    }

     

}

 

new testSQLite3();

Expected result:
----------------
//Create File 'test.sqlite3' And

//output

//bool(true)



Actual result:
--------------
//Create File 'test.sqlite3' And

//output

//NULL




------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=54692&edit=1

Reply via email to