com php-src: Skip test if directory does not exist: tests/security/open_basedir_001.phpt

From: Date: Thu, 15 Nov 2012 11:28:19 +0000
Subject: com php-src: Skip test if directory does not exist: tests/security/open_basedir_001.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-70548@lists.php.net to get a copy of this message
Commit: 7468fc0e374ad8cd8db482e6c228cdaae8aed075 Author: Johannes Schlüter <johannes@php.net> Thu, 15 Nov 2012 12:28:19 +0100 Parents: f5d8b638c7864150db3e7d39ecf3808850c82e0f Branches: PHP-5.3 PHP-5.4 PHP-5.5 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7468fc0e374ad8cd8db482e6c228cdaae8aed075 Log: Skip test if directory does not exist Would be good to run this using a directory which is existing everywhere. Changed paths: M tests/security/open_basedir_001.phpt Diff: diff --git a/tests/security/open_basedir_001.phpt b/tests/security/open_basedir_001.phpt index e05861a...9ea9559 100644 --- a/tests/security/open_basedir_001.phpt +++ b/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--

« previous php.cvs (#70548) next »