Skip to content

Commit 705a31b

Browse files
Mizunashi Manacmb69
authored andcommitted
Skip SQLite3::loadExtension tests if SQLITE_OMIT_LOAD_EXTENSION defined
1 parent 50e7e3a commit 705a31b

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

ext/sqlite3/tests/sqlite3_33_load_extension_param.phpt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ Jelle Lampaert
66
--INI--
77
sqlite3.extension_dir=/tmp
88
--SKIPIF--
9-
<?php require_once(__DIR__ . '/skipif.inc'); ?>
9+
<?php
10+
require_once(__DIR__ . '/skipif.inc');
11+
12+
if (!method_exists('SQLite3', 'loadExtension')) {
13+
die("skip if SQLITE_OMIT_LOAD_EXTENSION defined");
14+
}
15+
?>
1016
--FILE--
1117
<?php
1218

ext/sqlite3/tests/sqlite3_34_load_extension_ext_dir.phpt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ SQLite3::loadExtension with disabled extensions
44
Jelle Lampaert
55
#Belgian Testfest 2009
66
--SKIPIF--
7-
<?php require_once(__DIR__ . '/skipif.inc'); ?>
7+
<?php
8+
require_once(__DIR__ . '/skipif.inc');
9+
10+
if (!method_exists('SQLite3', 'loadExtension')) {
11+
die("skip if SQLITE_OMIT_LOAD_EXTENSION defined");
12+
}
13+
?>
814
--FILE--
915
<?php
1016

ext/sqlite3/tests/sqlite3_loadextension_with_wrong_param.phpt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ SQLite3::loadExtension test with wrong parameter type
44
Thijs Feryn <[email protected]>
55
#TestFest PHPBelgium 2009
66
--SKIPIF--
7-
<?php require_once(__DIR__ . '/skipif.inc'); ?>
7+
<?php
8+
require_once(__DIR__ . '/skipif.inc');
9+
10+
if (!method_exists('SQLite3', 'loadExtension')) {
11+
die("skip if SQLITE_OMIT_LOAD_EXTENSION defined");
12+
}
13+
?>
814
--FILE--
915
<?php
1016
$db = new SQLite3(':memory:');

0 commit comments

Comments
 (0)