summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-03-04 14:37:38 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-03-04 14:37:38 +0000
commitb162e18a29537ce015c7140cb154aeaa45b0e3c8 (patch)
treeadc1a55c037638c997eec2ce8aca8465ed6ef688
parent5c6fa351d5da4e18aef0999e0f1b6260bca8b9c7 (diff)
downloadphp-git-b162e18a29537ce015c7140cb154aeaa45b0e3c8.tar.gz
Skip test if running under safe-mode.
-rw-r--r--ext/standard/tests/file/bug22414.phpt3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/standard/tests/file/bug22414.phpt b/ext/standard/tests/file/bug22414.phpt
index 809ce50014..821eb4ecfe 100644
--- a/ext/standard/tests/file/bug22414.phpt
+++ b/ext/standard/tests/file/bug22414.phpt
@@ -2,6 +2,9 @@
Bug #22414: passthru() does not read data correctly
--SKIPIF--
<?php
+ if (ini_get("safe_mode")) {
+ die('skip this test cannot be run under safe-mode');
+ }
$cat_path = @shell_exec("which cat");
if (empty($cat_path)) {
die('skip cat binary needed for this test is not avaliable');