php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32933 Cannot extend class "SQLiteDatabase"
Submitted: 2005-05-03 23:16 UTC Modified: 2005-05-26 13:56 UTC
From: rbro at hotmail dot com Assigned: helly (profile)
Status: Closed Package: SQLite related
PHP Version: 5.0.4 OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rbro at hotmail dot com
New email:
PHP Version: OS:

 

 [2005-05-03 23:16 UTC] rbro at hotmail dot com
Description:
------------
The SQLiteDatabase class is not extendable while other databases classes such as mysqli are extendable.


Reproduce code:
---------------
<?php
class s1 extends SQLiteDatabase
{


}

$s1 = new s1('db', 0666, $error);
?>


Expected result:
----------------
no output


Actual result:
--------------
PHP Fatal error:  Class s1 may not inherit from final class (SQLiteDatabase) in 1.php on line 6

Fatal error: Class s1 may not inherit from final class (SQLiteDatabase) in 1.php on line 6


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-26 13:56 UTC] helly@php.net
This bug has been fixed in CVS.

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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 03:01:29 2024 UTC