Annotation of embedaddon/php/ext/sqlite3/tests/sqlite3_34_load_extension_ext_dir.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: SQLite3::loadExtension with disabled extensions
! 3: --CREDITS--
! 4: Jelle Lampaert
! 5: #Belgian Testfest 2009
! 6: --SKIPIF--
! 7: <?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
! 8: --FILE--
! 9: <?php
! 10:
! 11: $db = new SQLite3(':memory:');
! 12:
! 13: try {
! 14: $db->loadExtension("");
! 15: } catch (Extension $ex) {
! 16: var_dump($ex->getMessage());
! 17: }
! 18:
! 19: ?>
! 20: --EXPECTF--
! 21: Warning: SQLite3::loadExtension(): SQLite Extension are disabled in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>