]> granicus.if.org Git - php/commitdiff
Skip test if running under safe-mode.
authorIlia Alshanetsky <iliaa@php.net>
Tue, 4 Mar 2003 14:37:38 +0000 (14:37 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 4 Mar 2003 14:37:38 +0000 (14:37 +0000)
ext/standard/tests/file/bug22414.phpt

index 809ce50014d9250d0179aba19f0a377fd62d6249..821eb4ecfede5bbd9ae222380c5bbc9ff39c8877 100644 (file)
@@ -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');