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