diff options
| author | Giovanni | 2020-07-21 11:58:22 +0200 |
|---|---|---|
| committer | GitHub | 2020-07-21 11:58:22 +0200 |
| commit | b90e0ecc6b0717786ae72236c37157f1b5983521 (patch) | |
| tree | 8b9bdb4aaa8ba6bfdf1baef09df88afa64c8a4f6 /src/tests/deny_writable | |
| parent | 043d9897b4d6879f9a91dbd0ccdb476649731f7c (diff) | |
Fix #338 - added log type if type is simulation, drop or log. (#339)
Co-authored-by: Giovanni Dante Grazioli <giovanni.dantegrazioli@nbs-system.com>
Diffstat (limited to 'src/tests/deny_writable')
| -rw-r--r-- | src/tests/deny_writable/deny_writable_execution.phpt | 2 | ||||
| -rw-r--r-- | src/tests/deny_writable/deny_writable_execution_simulation.phpt | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/deny_writable/deny_writable_execution.phpt b/src/tests/deny_writable/deny_writable_execution.phpt index 43d12c3..e65dc32 100644 --- a/src/tests/deny_writable/deny_writable_execution.phpt +++ b/src/tests/deny_writable/deny_writable_execution.phpt | |||
| @@ -40,4 +40,4 @@ unlink("$dir/non_writable_file.txt"); | |||
| 40 | unlink("$dir/writable_file.txt"); | 40 | unlink("$dir/writable_file.txt"); |
| 41 | ?> | 41 | ?> |
| 42 | --EXPECTF-- | 42 | --EXPECTF-- |
| 43 | Fatal error: [snuffleupagus][0.0.0.0][readonly_exec] Attempted execution of a writable file (%a/deny_writable_execution.php). in %a/deny_writable_execution.php on line 2 | 43 | Fatal error: [snuffleupagus][0.0.0.0][readonly_exec][drop] Attempted execution of a writable file (%a/deny_writable_execution.php). in %a/deny_writable_execution.php on line 2 |
diff --git a/src/tests/deny_writable/deny_writable_execution_simulation.phpt b/src/tests/deny_writable/deny_writable_execution_simulation.phpt index db46718..d825cfa 100644 --- a/src/tests/deny_writable/deny_writable_execution_simulation.phpt +++ b/src/tests/deny_writable/deny_writable_execution_simulation.phpt | |||
| @@ -42,10 +42,10 @@ unlink("$dir/non_writable_file.txt"); | |||
| 42 | unlink("$dir/writable_file.txt"); | 42 | unlink("$dir/writable_file.txt"); |
| 43 | ?> | 43 | ?> |
| 44 | --EXPECTF-- | 44 | --EXPECTF-- |
| 45 | Warning: [snuffleupagus][0.0.0.0][readonly_exec] Attempted execution of a writable file (%a/deny_writable_execution_simulation.php). in %a/deny_writable_execution_simulation.php on line 2 | 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 |
| 46 | 46 | ||
| 47 | Warning: [snuffleupagus][0.0.0.0][readonly_exec] Attempted execution of a writable file (%a/writable_file.txt). in %a/deny_writable_execution_simulation.php on line 12 | 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 |
| 48 | 48 | ||
| 49 | Warning: [snuffleupagus][0.0.0.0][readonly_exec] Attempted execution of a writable file (%a/writable_file.txt). in %a/writable_file.txt on line 1 | 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 |
| 50 | Code execution within a writable file. | 50 | Code execution within a writable file. |
| 51 | Code execution within a non-writable file. | 51 | Code execution within a non-writable file. |
