1--TEST--
2SQLite3::loadExtension with disabled extensions
3--CREDITS--
4Jelle Lampaert
5#Belgian Testfest 2009
6--SKIPIF--
7<?php
8require_once(__DIR__ . '/skipif.inc');
9
10if (!method_exists('SQLite3', 'loadExtension')) {
11    die("skip if SQLITE_OMIT_LOAD_EXTENSION defined");
12}
13?>
14--FILE--
15<?php
16
17$db = new SQLite3(':memory:');
18
19try {
20  $db->loadExtension("");
21} catch (Extension $ex) {
22  var_dump($ex->getMessage());
23}
24
25?>
26--EXPECTF--
27Warning: SQLite3::loadExtension(): SQLite Extension are disabled in %s on line %d
28