Skip to content

Commit 7468fc0

Browse files
committed
Skip test if directory does not exist
Would be good to run this using a directory which is existing everywhere.
1 parent f5d8b63 commit 7468fc0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/security/open_basedir_001.phpt

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ openbase_dir runtime tightning
55
if (substr(PHP_OS, 0, 3) == 'WIN') {
66
die('skip.. only for unix');
77
}
8+
if (!is_dir("/usr/local/bin")) {
9+
die('skip.. no /usr/local/bin on this machine');
10+
}
811
--INI--
912
open_basedir=/usr/local
1013
--FILE--

0 commit comments

Comments
 (0)