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