Browse Source

Skip test if directory does not exist

Would be good to run this using a directory which is existing
everywhere.
PHP-5.3.20
Johannes Schlüter 13 years ago
parent
commit
7468fc0e37
  1. 3
      tests/security/open_basedir_001.phpt

3
tests/security/open_basedir_001.phpt

@ -5,6 +5,9 @@ openbase_dir runtime tightning
if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip.. only for unix');
}
if (!is_dir("/usr/local/bin")) {
die('skip.. no /usr/local/bin on this machine');
}
--INI--
open_basedir=/usr/local
--FILE--

Loading…
Cancel
Save