PHP :: Bug #32933 :: Cannot extend class "SQLiteDatabase"
| 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 | ||
[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
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2005-05-26 13:56 UTC] helly@php.net