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 10require_once(__DIR__ . '/skipif.inc'); 11 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 (Extension $ex) { 24 var_dump($ex->getMessage()); 25} 26 27?> 28--EXPECTF-- 29Warning: SQLite3::loadExtension(): Empty string as an extension in %s on line %d 30