#32933 [Opn->Asn]: Cannot extend class "SQLiteDatabase"
| From: | tony2001@php.net | Date: | Wed, 11 May 2005 22:18:13 +0000 |
| Subject: | #32933 [Opn->Asn]: Cannot extend class "SQLiteDatabase" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-78914@lists.php.net to get a copy of this message | ||
ID: 32933
Updated by: tony2001@php.net
Reported By: rbro at hotmail dot com
-Status: Open
+Status: Assigned
Bug Type: SQLite related
Operating System: Linux
PHP Version: 5.0.4
-Assigned To:
+Assigned To: helly
New Comment:
Marcus, you did it:
http://cvs.php.net/diff.php/php-src/ext/sqlite/sqlite.c?r1=1.97&r2=1.98&ty=u
Previous Comments:
------------------------------------------------------------------------
[2005-05-03 23:16:53] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32933&edit=1