1--TEST--
2SQLite3::loadExtension with disabled extensions
3--CREDITS--
4Jelle Lampaert
5#Belgian Testfest 2009
6--EXTENSIONS--
7sqlite3
8--SKIPIF--
9<?php
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 Extensions are disabled in %s on line %d
28