diff options
Diffstat (limited to 'src/tests/deny_writable/deny_writable_execution.phpt')
| -rw-r--r-- | src/tests/deny_writable/deny_writable_execution.phpt | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/tests/deny_writable/deny_writable_execution.phpt b/src/tests/deny_writable/deny_writable_execution.phpt index a629479..383ffa5 100644 --- a/src/tests/deny_writable/deny_writable_execution.phpt +++ b/src/tests/deny_writable/deny_writable_execution.phpt | |||
| @@ -21,6 +21,8 @@ sp.configuration_file={PWD}/config/config_disable_writable.ini | |||
| 21 | $dir = __DIR__; | 21 | $dir = __DIR__; |
| 22 | 22 | ||
| 23 | // just in case | 23 | // just in case |
| 24 | @chmod("$dir/non_writable_file.txt", 0777); | ||
| 25 | @chmod("$dir/writable_file.txt", 0777); | ||
| 24 | @unlink("$dir/non_writable_file.txt"); | 26 | @unlink("$dir/non_writable_file.txt"); |
| 25 | @unlink("$dir/writable_file.txt"); | 27 | @unlink("$dir/writable_file.txt"); |
| 26 | 28 | ||
| @@ -31,13 +33,5 @@ chmod("$dir/writable_file.txt", 0777); | |||
| 31 | include "$dir/non_writable_file.txt"; | 33 | include "$dir/non_writable_file.txt"; |
| 32 | include "$dir/writable_file.txt"; | 34 | include "$dir/writable_file.txt"; |
| 33 | ?> | 35 | ?> |
| 34 | --CLEAN-- | ||
| 35 | <?php | ||
| 36 | $dir = __DIR__; | ||
| 37 | chmod("$dir/non_writable_file.txt", 0777); | ||
| 38 | chmod("$dir/writable_file.txt", 0777); | ||
| 39 | unlink("$dir/non_writable_file.txt"); | ||
| 40 | unlink("$dir/writable_file.txt"); | ||
| 41 | ?> | ||
| 42 | --EXPECTF-- | 36 | --EXPECTF-- |
| 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 | 37 | 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 |
