com php-src: Make test case more resilient: ext/sqlite3/tests /sqlite3_21_security.phpt

From: Date: Fri, 02 Sep 2016 22:24:30 +0000
Subject: com php-src: Make test case more resilient: ext/sqlite3/tests /sqlite3_21_security.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-94269@lists.php.net to get a copy of this message
Commit: c83bdb8e6a8c66ffad1079a9802ed53372007562 Author: Christoph M. Becker <cmbecker69@gmx.de> Sat, 3 Sep 2016 00:18:19 +0200 Parents: 5efd2a33df62d2bcaeeb6c8ff6ef20478f3a5417 Branches: PHP-5.6 PHP-7.0 PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c83bdb8e6a8c66ffad1079a9802ed53372007562 Log: 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>. Changed paths: M ext/sqlite3/tests/sqlite3_21_security.phpt Diff: diff --git a/ext/sqlite3/tests/sqlite3_21_security.phpt b/ext/sqlite3/tests/sqlite3_21_security.phpt index 7e83bb2..b9662fe 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';

« previous php.cvs (#94269) next »