diff options
Diffstat (limited to 'src/tests/deny_writable/dump_deny_writable_execution.phpt')
| -rw-r--r-- | src/tests/deny_writable/dump_deny_writable_execution.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
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 | ?> |
