Bug #54692 [Opn]: SQLite3::open() Return Value
| From: | scottmac@php.net | Date: | Tue, 10 May 2011 06:51:06 +0000 |
| Subject: | Bug #54692 [Opn]: SQLite3::open() Return Value | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-160631@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54692&edit=1
ID: 54692
Updated by: scottmac@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