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 | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/tests/deny_writable/deny_writable_execution_simulation.phpt b/src/tests/deny_writable/deny_writable_execution_simulation.phpt index 1118dc0..d4e4801 100644 --- a/src/tests/deny_writable/deny_writable_execution_simulation.phpt +++ b/src/tests/deny_writable/deny_writable_execution_simulation.phpt | |||
| @@ -1,7 +1,6 @@ | |||
| 1 | --TEST-- | 1 | --TEST-- |
| 2 | Readonly execution attempt (simulation mode) | 2 | Readonly execution attempt (simulation mode) |
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php if (PHP_VERSION_ID >= 80000) print "skip"; ?> | ||
| 5 | <?php | 4 | <?php |
| 6 | if (!extension_loaded("snuffleupagus")) { print "skip"; }; | 5 | if (!extension_loaded("snuffleupagus")) { print "skip"; }; |
| 7 | 6 | ||
| @@ -42,10 +41,14 @@ unlink("$dir/non_writable_file.txt"); | |||
| 42 | unlink("$dir/writable_file.txt"); | 41 | unlink("$dir/writable_file.txt"); |
| 43 | ?> | 42 | ?> |
| 44 | --EXPECTF-- | 43 | --EXPECTF-- |
| 45 | Warning: [snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a writable file (%a/deny_writable_execution_simulation.php). in %a/deny_writable_execution_simulation.php on line 2 | 44 | Warning: [snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a writable file (%a/deny_writable_execution_simulation.php) in %a/deny_writable_execution_simulation.php on line 2 |
| 46 | 45 | ||
| 47 | Warning: [snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a writable file (%a/writable_file.txt). in %a/deny_writable_execution_simulation.php on line 12 | 46 | Warning: [snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a writable file (%a/writable_file.txt) in %a/deny_writable_execution_simulation.php on line 12 |
| 48 | 47 | ||
| 49 | Warning: [snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a writable file (%a/writable_file.txt). in %a/writable_file.txt on line 1 | 48 | Warning: [snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a writable file (%a/writable_file.txt) in %a/writable_file.txt on line 1 |
| 50 | Code execution within a writable file. | 49 | Code execution within a writable file. |
| 50 | |||
| 51 | Warning: [snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a file owned by the PHP process (%s/tests/deny_writable/non_writable_file.txt) in %s/tests/deny_writable/deny_writable_execution_simulation.php on line 13 | ||
| 52 | |||
| 53 | Warning: [snuffleupagus][0.0.0.0][readonly_exec][simulation] Attempted execution of a file owned by the PHP process (%s/tests/deny_writable/non_writable_file.txt) in %src/tests/deny_writable/non_writable_file.txt on line 1 | ||
| 51 | Code execution within a non-writable file. | 54 | Code execution within a non-writable file. |
