Bug #75455 [NEW]: Unable to extend SQLite3 class: out of sequence error
| From: | t dot oelgarte at asysgmbh dot de | Date: | Sun, 29 Oct 2017 21:10:59 +0000 |
| Subject: | Bug #75455 [NEW]: Unable to extend SQLite3 class: out of sequence error | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-212360@lists.php.net to get a copy of this message | ||
From: t dot oelgarte at asysgmbh dot de
Operating system: Ubuntu 14.04
PHP version: 7.1.11
Package: SQLite related
Bug Type: Bug
Bug description:Unable to extend SQLite3 class: out of sequence error
Description:
------------
If i extend the SQLite3 class and overwrite it's constructor, then the
call to the parent constructor (the constructor of SQLite3) will throw
an Exception with the following error message: "Unable to open database:
library routine called out of sequence".
Test script:
---------------
class MySqlite extends \SQLite3 {
function __construct(string $filename, int $flags = null, string
$encryption_key) {
parent::__construct($filename, $flags, $encryption_key);
$this->enableExceptions(true);
$this->busyTimeout(60000);
}
}
$con = new MySqlite('file.sqlite3');
--
Edit bug report at https://bugs.php.net/bug.php?id=75455&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75455&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75455&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75455&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75455&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75455&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75455&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75455&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75455&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75455&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75455&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75455&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75455&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75455&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75455&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75455&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75455&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75455&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75455&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75455&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75455&r=mysqlcfg