Doc #54691 [Opn]: SQLite3::open() Return Value
| From: | ostico at gmail dot com | Date: | Sun, 08 May 2011 21:08:09 +0000 |
| Subject: | Doc #54691 [Opn]: SQLite3::open() Return Value | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-6370@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54691&edit=1
ID: 54691
User updated by: ostico at gmail dot com
Reported by: ostico at gmail dot com
Summary: SQLite3::open() Return Value
Status: Open
Type: Documentation Problem
Package: SQLite related
Operating System: Ubuntu Server
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
It Return NULL
Previous Comments:
------------------------------------------------------------------------
[2011-05-08 22:58:03] ostico at gmail dot com
Description:
------------
Documentation Says:
SQLite3::open
---
Return Values:
Returns TRUE on success, FALSE on failure to open the database.
---
Not True.
It can return NULL if we are in creation context.
Test script:
---------------
class testSQLite3 extends SQLite3{
public function __construct(){
var_dump( $this->open('test.sqlite') );
}
}
new testSQLite3();
Expected result:
----------------
//Create File 'test.sqlite' And
//output
//bool(true)
Actual result:
--------------
//Create File 'test.sqlite' And
//output
//NULL
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54691&edit=1