diff options
| author | jvoisin | 2022-12-10 12:00:36 +0100 |
|---|---|---|
| committer | jvoisin | 2022-12-11 18:36:26 +0100 |
| commit | eb570f29daa42fd8b90ecfff75382846e51b3a15 (patch) | |
| tree | 5d14199f0e9f97ec521aa69d2c55f14b21d94db7 /src/tests/deny_writable/deny_writable_execution_disabled.phpt | |
| parent | 808e7bff7e17b4f22a64120162734301aa065db0 (diff) | |
Add support for PHP8.2
Diffstat (limited to 'src/tests/deny_writable/deny_writable_execution_disabled.phpt')
| -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. | ||
