diff options
| author | jvoisin | 2023-01-04 19:06:28 +0100 |
|---|---|---|
| committer | jvoisin | 2023-01-04 19:10:38 +0100 |
| commit | 1bf0f3ec9088d34383c564d6306901ae6dc94cb5 (patch) | |
| tree | d484c173bacd0e5c5d2847b43f99e99d26074019 /src/tests/deny_writable/deny_writable_execution_simulation.phpt | |
| parent | 0423e1b63364f4dd741d3a8ac8a880407ff37371 (diff) | |
Fix the CI for PHP8.2
Diffstat (limited to 'src/tests/deny_writable/deny_writable_execution_simulation.phpt')
| -rw-r--r-- | src/tests/deny_writable/deny_writable_execution_simulation.phpt | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/src/tests/deny_writable/deny_writable_execution_simulation.phpt b/src/tests/deny_writable/deny_writable_execution_simulation.phpt index d4e4801..39dab32 100644 --- a/src/tests/deny_writable/deny_writable_execution_simulation.phpt +++ b/src/tests/deny_writable/deny_writable_execution_simulation.phpt | |||
| @@ -22,6 +22,8 @@ sp.configuration_file={PWD}/config/config_disable_writable_simulation.ini | |||
| 22 | $dir = __DIR__; | 22 | $dir = __DIR__; |
| 23 | 23 | ||
| 24 | // just in case | 24 | // just in case |
| 25 | @chmod("$dir/non_writable_file.txt", 0777); | ||
| 26 | @chmod("$dir/writable_file.txt", 0777); | ||
| 25 | @unlink("$dir/non_writable_file.txt"); | 27 | @unlink("$dir/non_writable_file.txt"); |
| 26 | @unlink("$dir/writable_file.txt"); | 28 | @unlink("$dir/writable_file.txt"); |
| 27 | 29 | ||
| @@ -32,23 +34,15 @@ chmod("$dir/non_writable_file.txt", 0400); | |||
| 32 | include "$dir/writable_file.txt"; | 34 | include "$dir/writable_file.txt"; |
| 33 | include "$dir/non_writable_file.txt"; | 35 | include "$dir/non_writable_file.txt"; |
| 34 | ?> | 36 | ?> |
| 35 | --CLEAN-- | ||
| 36 | <?php | ||
| 37 | $dir = __DIR__; | ||
| 38 | chmod("$dir/non_writable_file.txt", 0777); | ||
| 39 | chmod("$dir/writable_file.txt", 0777); | ||
| 40 | unlink("$dir/non_writable_file.txt"); | ||
| 41 | unlink("$dir/writable_file.txt"); | ||
| 42 | ?> | ||
| 43 | --EXPECTF-- | 37 | --EXPECTF-- |
| 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 | 38 | 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 %d |
| 45 | 39 | ||
| 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 | 40 | 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 %d |
| 47 | 41 | ||
| 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 | 42 | 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 %d |
| 49 | Code execution within a writable file. | 43 | Code execution within a writable file. |
| 50 | 44 | ||
| 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 | 45 | 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 %d |
| 52 | 46 | ||
| 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 | 47 | 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 %d |
| 54 | Code execution within a non-writable file. | 48 | Code execution within a non-writable file. |
