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

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

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[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