1--TEST--
2SQLite3::loadExtension with empty extension test
3--CREDITS--
4Jelle Lampaert
5#Belgian Testfest 2009
6--INI--
7sqlite3.extension_dir=/tmp
8--SKIPIF--
9<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
10--FILE--
11<?php
12
13$db = new SQLite3(':memory:');
14
15try {
16  $db->loadExtension("");
17} catch (Extension $ex) {
18  var_dump($ex->getMessage());
19}
20
21?>
22--EXPECTF--
23Warning: SQLite3::loadExtension(): Empty string as an extension in %s on line %d
24