--TEST-- SQLite3 open_basedir / safe_mode checks --SKIPIF-- --INI-- open_basedir=. --FILE-- close()); unlink($directory . $file); echo "Above test directory\n"; try { $db = new SQLite3('../bad' . $file); } catch (Exception $e) { echo $e . "\n"; } echo "Done\n"; ?> --EXPECTF-- Within test directory object(SQLite3)#%d (0) { } bool(true) Above test directory Warning: SQLite3::__construct(): open_basedir restriction in effect. File(%s) is not within the allowed path(s): (.) in %ssqlite3_21_security.php on line %d exception 'Exception' with message 'open_basedir prohibits opening %s' in %ssqlite3_21_security.php:%d Stack trace: #0 %ssqlite3_21_security.php(%d): SQLite3->__construct('%s') #1 {main} Done