diff options
Diffstat (limited to 'src/tests/deny_writable')
3 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/deny_writable/deny_writable_execution.phpt b/src/tests/deny_writable/deny_writable_execution.phpt index 383ffa5..c6ece7a 100644 --- a/src/tests/deny_writable/deny_writable_execution.phpt +++ b/src/tests/deny_writable/deny_writable_execution.phpt | |||
| @@ -11,7 +11,7 @@ $filename = __DIR__ . '/test.txt'; | |||
| 11 | file_put_contents($filename, 'a'); | 11 | file_put_contents($filename, 'a'); |
| 12 | chmod($filename, 0400); | 12 | chmod($filename, 0400); |
| 13 | 13 | ||
| 14 | if (is_writable($filename)) print "skip"; | 14 | if (is_writable($filename)) print "skip chmod did not remove write access"; |
| 15 | @unlink($filename); | 15 | @unlink($filename); |
| 16 | ?> | 16 | ?> |
| 17 | --INI-- | 17 | --INI-- |
diff --git a/src/tests/deny_writable/deny_writable_execution_simulation.phpt b/src/tests/deny_writable/deny_writable_execution_simulation.phpt index 39dab32..4986a62 100644 --- a/src/tests/deny_writable/deny_writable_execution_simulation.phpt +++ b/src/tests/deny_writable/deny_writable_execution_simulation.phpt | |||
| @@ -7,11 +7,11 @@ if (!extension_loaded("snuffleupagus")) { print "skip"; }; | |||
| 7 | // root has write privileges on any file | 7 | // root has write privileges on any file |
| 8 | if (TRUE == function_exists("posix_getuid")) { | 8 | if (TRUE == function_exists("posix_getuid")) { |
| 9 | if (0 == posix_getuid()) { | 9 | if (0 == posix_getuid()) { |
| 10 | print "skip"; | 10 | print "skip Running as root"; |
| 11 | } | 11 | } |
| 12 | } elseif (TRUE == function_exists("shell_exec")) { | 12 | } elseif (TRUE == function_exists("shell_exec")) { |
| 13 | if ("root" == trim(shell_exec("whoami"))) { | 13 | if ("root" == trim(shell_exec("whoami"))) { |
| 14 | print "skip"; | 14 | print "skip Running as root"; |
| 15 | } | 15 | } |
| 16 | } | 16 | } |
| 17 | ?> | 17 | ?> |
diff --git a/src/tests/deny_writable/dump_deny_writable_execution.phpt b/src/tests/deny_writable/dump_deny_writable_execution.phpt index 2e6bca5..efd3694 100644 --- a/src/tests/deny_writable/dump_deny_writable_execution.phpt +++ b/src/tests/deny_writable/dump_deny_writable_execution.phpt | |||
| @@ -7,11 +7,11 @@ if (!extension_loaded("snuffleupagus")) print "skip"; | |||
| 7 | // root has write privileges on any file | 7 | // root has write privileges on any file |
| 8 | if (TRUE == function_exists("posix_getuid")) { | 8 | if (TRUE == function_exists("posix_getuid")) { |
| 9 | if (0 == posix_getuid()) { | 9 | if (0 == posix_getuid()) { |
| 10 | print "skip"; | 10 | print "skip Running as root"; |
| 11 | } | 11 | } |
| 12 | } elseif (TRUE == function_exists("shell_exec")) { | 12 | } elseif (TRUE == function_exists("shell_exec")) { |
| 13 | if ("root" == trim(shell_exec("whoami"))) { | 13 | if ("root" == trim(shell_exec("whoami"))) { |
| 14 | print "skip"; | 14 | print "skip Running as root"; |
| 15 | } | 15 | } |
| 16 | } | 16 | } |
| 17 | ?> | 17 | ?> |
