1--TEST--
2SQLite3::loadExtension with empty extension test
3--CREDITS--
4Jelle Lampaert
5#Belgian Testfest 2009
6--INI--
7sqlite3.extension_dir="{TMP}"
8--EXTENSIONS--
9sqlite3
10--SKIPIF--
11<?php
12if (!method_exists('SQLite3', 'loadExtension')) {
13    die("skip if SQLITE_OMIT_LOAD_EXTENSION defined");
14}
15?>
16--FILE--
17<?php
18
19$db = new SQLite3(':memory:');
20
21try {
22  $db->loadExtension("");
23} catch (\Throwable $ex) {
24  var_dump($ex->getMessage());
25}
26
27?>
28--EXPECTF--
29string(63) "SQLite3::loadExtension(): Argument #1 ($name) must not be empty"
30