#32933 [Asn->Csd]: Cannot extend class "SQLiteDatabase"

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

« previous php.bugs (#79542) next »