diff options
| author | Christoph M. Becker <cmbecker69@gmx.de> | 2016-09-03 00:18:19 +0200 |
|---|---|---|
| committer | Christoph M. Becker <cmbecker69@gmx.de> | 2016-09-03 00:24:30 +0200 |
| commit | c83bdb8e6a8c66ffad1079a9802ed53372007562 (patch) | |
| tree | aaee47ebb22ec822b6a9ab3bbc90329332139c9a | |
| parent | 5efd2a33df62d2bcaeeb6c8ff6ef20478f3a5417 (diff) | |
| download | php-git-c83bdb8e6a8c66ffad1079a9802ed53372007562.tar.gz | |
Make test case more resilient
When ran from a root directory the test case failed, because the open_basedir
restriction for "../[…]" won't kick in. Therefore we change the current
working directory to the test case's directory, as discussed on internals,
see <http://news.php.net/php.internals/95585>.
| -rw-r--r-- | ext/sqlite3/tests/sqlite3_21_security.phpt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/sqlite3/tests/sqlite3_21_security.phpt b/ext/sqlite3/tests/sqlite3_21_security.phpt index 7e83bb23e1..b9662fe808 100644 --- a/ext/sqlite3/tests/sqlite3_21_security.phpt +++ b/ext/sqlite3/tests/sqlite3_21_security.phpt @@ -6,6 +6,8 @@ SQLite3 open_basedir checks open_basedir=. --FILE-- <?php +chdir(__DIR__); + $directory = dirname(__FILE__) . '/'; $file = uniqid() . '.db'; |
