diff options
Diffstat (limited to 'src/tests/deny_writable')
| -rw-r--r-- | src/tests/deny_writable/deny_writable_execution_disabled.phpt | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/tests/deny_writable/deny_writable_execution_disabled.phpt b/src/tests/deny_writable/deny_writable_execution_disabled.phpt index dd01f01..0fd19f4 100644 --- a/src/tests/deny_writable/deny_writable_execution_disabled.phpt +++ b/src/tests/deny_writable/deny_writable_execution_disabled.phpt | |||
| @@ -18,15 +18,13 @@ chmod("$dir/writable_file.txt", 0777); | |||
| 18 | chmod("$dir/non_writable_file.txt", 0400); | 18 | chmod("$dir/non_writable_file.txt", 0400); |
| 19 | include "$dir/writable_file.txt"; | 19 | include "$dir/writable_file.txt"; |
| 20 | include "$dir/non_writable_file.txt"; | 20 | include "$dir/non_writable_file.txt"; |
| 21 | ?> | 21 | |
| 22 | --EXPECT-- | 22 | // Clean up |
| 23 | Code execution within a writable file. | ||
| 24 | Code execution within a non-writable file. | ||
| 25 | --CLEAN-- | ||
| 26 | <?php | ||
| 27 | $dir = __DIR__; | ||
| 28 | chmod("$dir/non_writable_file.txt", 0777); | 23 | chmod("$dir/non_writable_file.txt", 0777); |
| 29 | chmod("$dir/writable_file.txt", 0777); | 24 | chmod("$dir/writable_file.txt", 0777); |
| 30 | unlink("$dir/non_writable_file.txt"); | 25 | unlink("$dir/non_writable_file.txt"); |
| 31 | unlink("$dir/writable_file.txt"); | 26 | unlink("$dir/writable_file.txt"); |
| 32 | ?> | 27 | ?> |
| 28 | --EXPECT-- | ||
| 29 | Code execution within a writable file. | ||
| 30 | Code execution within a non-writable file. | ||
