mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

* Deprecate warnings in SQLite3, change returned exception class to SQLite3Exception RFC: https://wiki.php.net/rfc/sqlite3_exceptions Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
27 lines
495 B
PHP
27 lines
495 B
PHP
--TEST--
|
|
SQLite3::loadExtension with disabled extensions
|
|
--CREDITS--
|
|
Jelle Lampaert
|
|
#Belgian Testfest 2009
|
|
--EXTENSIONS--
|
|
sqlite3
|
|
--SKIPIF--
|
|
<?php
|
|
if (!method_exists('SQLite3', 'loadExtension')) {
|
|
die("skip if SQLITE_OMIT_LOAD_EXTENSION defined");
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$db = new SQLite3(':memory:');
|
|
|
|
try {
|
|
$db->loadExtension("");
|
|
} catch (Extension $ex) {
|
|
var_dump($ex->getMessage());
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: SQLite3::loadExtension(): SQLite Extensions are disabled in %s on line %d
|